siikamiika
3a70346eb3
fix various unwanted focus issues on search page
...
Don't focus input if a modifier or specific keys are pressed
2019-10-26 03:26:24 +03:00
siikamiika
a716a52cab
make non-hotkey keys focus input on search page
...
The issue was that scanning on search page introduced a way to lose
focus of the query input, and the new feature that the search page
hotkey focuses an existing search page instead of opening a new one made
it more obvious.
Now every key that isn't a hotkey focuses the query input, and typing
text into the box scrolls it into view in case it wasn't there when
searching.
There is an accessibility issue that this can cause, because now tab
also focuses the query input before it focuses the next element. I
didn't implement a workaround for that because it would have been more
complicated than this simple fix.
Fixes #263
2019-10-26 01:26:56 +03:00
Danny
aeac7bf2a8
Proper spacing for Anki in {furigana-plain}
...
This should fix #264
Note it does not address broken segmentation, just representation
within Anki itself to work properly.
2019-10-23 07:46:43 -04:00
toasted-nutbread
7a3315d75d
Use chrome.runtime.getURL instead of chrome.extension.getURL
2019-10-22 20:23:03 -04:00
Alex Yatskov
d8f9c2e1d4
Merge pull request #261 from toasted-nutbread/search-button-reuse-tab
...
Reuse open search tab when clicking search button
2019-10-20 11:06:23 -07:00
Alex Yatskov
6592323855
Merge pull request #259 from toasted-nutbread/database-optimizations2
...
Database optimizations part 2
2019-10-20 11:04:17 -07:00
toasted-nutbread
362a1ed9e4
Catch exception thrown on Edge
2019-10-20 10:58:22 -04:00
toasted-nutbread
d7dc8ac9cd
Add tooltip about middle click behaviour
2019-10-20 10:30:44 -04:00
toasted-nutbread
ce92591b63
Fix window focus not always working
2019-10-19 22:55:32 -04:00
toasted-nutbread
7abc7fd0e7
Use links instead of buttons on context page
2019-10-19 22:54:58 -04:00
toasted-nutbread
205498ef3b
Validate chrome.windows exists before usage
2019-10-19 22:45:29 -04:00
toasted-nutbread
ffb6ff9325
Allow multiple options pages to be opened on middle click
2019-10-19 22:34:47 -04:00
toasted-nutbread
d9ae34821c
Add support for middle clicks opening new tabs on the context buttons
2019-10-19 22:30:16 -04:00
toasted-nutbread
dbec4bffda
Make the search button reuse an open search tab if it exists
2019-10-19 22:28:23 -04:00
Alex Yatskov
03c72e9429
Merge pull request #256 from toasted-nutbread/unlimited-storage
...
Add unlimited storage permission
2019-10-19 12:01:54 -07:00
toasted-nutbread
eea95eb130
Simplify score to term frequency conversion
2019-10-19 14:18:57 -04:00
toasted-nutbread
96e4bf1735
Use native IndexedDB APIs for findTagForTitle
2019-10-19 13:41:18 -04:00
toasted-nutbread
610c2b9cca
Move tagCache out of Database and into Translator
2019-10-19 13:32:05 -04:00
toasted-nutbread
6f5fa6771b
Remove unused database functions
2019-10-19 12:44:23 -04:00
toasted-nutbread
97de7883a3
Update getMergedSecondarySearchResults to use findTermsExactBulk
2019-10-19 12:42:26 -04:00
toasted-nutbread
4446cbeabb
Create getMergedSecondarySearchResults
2019-10-19 12:28:33 -04:00
toasted-nutbread
96f37fd9dc
Create function for body of findTermsMerged's sequencedDefinitions loop
2019-10-19 12:16:38 -04:00
toasted-nutbread
a08cbebeb3
Use findTermsBySequenceBulk instead of findTermsBySequence
2019-10-19 11:34:12 -04:00
toasted-nutbread
a25167df73
Use findKanjiBulk and findKanjiMetaBulk in Translator.findKanji
2019-10-19 10:39:08 -04:00
toasted-nutbread
d212d0aba1
Add additional database bulk methods
2019-10-19 10:19:12 -04:00
toasted-nutbread
9364a7cb4e
Create function for creating kanji data and meta
2019-10-18 23:16:33 -04:00
toasted-nutbread
6743b785c9
Remove temp createResult
2019-10-18 23:09:00 -04:00
toasted-nutbread
31ae00d0d3
Add missing validate calls
2019-10-18 23:04:06 -04:00
toasted-nutbread
127a728675
Remove unused functions
2019-10-18 21:58:28 -04:00
toasted-nutbread
598cd32946
Update *show* APIs to unified showContent and setContent
2019-10-17 18:40:43 -04:00
toasted-nutbread
779b4af590
Change -teoru endings to be godan verbs
2019-10-16 19:11:45 -04:00
toasted-nutbread
16521fec93
Assign first popup on the search page as a depth of 1
2019-10-15 20:23:25 -04:00
toasted-nutbread
173a474d5b
Add unlimited storage permission
2019-10-15 19:41:39 -04:00
toasted-nutbread
099909287f
Show warning messages if persistant storage fails
...
Only Firefox seems to support persistent storage properly.
2019-10-15 19:22:30 -04:00
toasted-nutbread
4443ad370e
Catch error when trying to persist storage
...
This happens on Firefox Mobile
2019-10-13 18:41:16 -04:00
toasted-nutbread
693ffebbf7
Make the Options link the first link
...
Better reflects importance in a top-down list.
2019-10-13 18:38:17 -04:00
toasted-nutbread
437fe4e62e
Move anki warnings under anki-general
2019-10-13 18:30:44 -04:00
toasted-nutbread
d42a07dc0b
Improve layout of context.html on Firefox Mobile
2019-10-13 18:23:59 -04:00
toasted-nutbread
ba27ea2c9d
Center align context popup window buttons
2019-10-13 17:40:51 -04:00
toasted-nutbread
17e2f825f4
Add warning message for Mac users about App Nap
2019-10-13 17:32:28 -04:00
toasted-nutbread
cb236a7430
Add apiGetEnvironmentInfo function
2019-10-13 17:20:55 -04:00
toasted-nutbread
4f8c84d524
Fix Japanese voice ordering on Firefox for Android
2019-10-13 16:30:31 -04:00
toasted-nutbread
f8e666b70c
Fix backend handling errors incorrectly
2019-10-13 16:08:15 -04:00
siikamiika
f3ab7673f9
add css class for dictionary name
...
Can be used for dictionary specific styling
2019-10-13 21:50:29 +03:00
toasted-nutbread
7bae3824e7
Add support for text-to-speech playback
2019-10-13 12:21:19 -04:00
toasted-nutbread
69b28571bd
audioBuildUrl => audioGetUrl and simplify
2019-10-13 12:20:56 -04:00
toasted-nutbread
54d4c65854
Rename audioGetFromSources's createAudioObject argument to download
2019-10-13 12:20:56 -04:00
toasted-nutbread
21a2730cde
Add option for text-to-speech
2019-10-13 12:20:56 -04:00
toasted-nutbread
1b96e69ea2
Placeholder and improve consistency of stylesheet rule priorities
2019-10-13 12:12:52 -04:00
toasted-nutbread
b34ff7ebe9
Change #yomichan-float to .yomichan-float
...
Since there can be more than one popup, using a class makes more sense than an ID.
2019-10-13 12:12:52 -04:00