Anki/aqt
Damien Elmes 34dcf64d76 another attempt at fixing key handling
we can't use an event filter on the top level webview, because it
ignores the return value of the filter and leads to Anki thinking
keys have been pressed twice

and if we use an event filter on the focusProxy(), the
keypress/release events are sent even when a text field is currently
focused, leading to shortcuts being triggered when typing in the answer

to solve this, we move away from handling the key press events
directly, and instead install shortcuts for the events we want to
trigger. in addition to the global shortcuts, each state can install
its own shortcuts, which we remove when transitioning to a new state

also remove the unused canFocus argument to ankiwebview, and accept a parent
argument as required by the code in forms/
2017-06-22 16:39:31 +10:00
..
__init__.py add note about being an alpha 2017-06-14 11:59:58 +10:00
about.py add Guillem to about 2017-05-09 12:40:34 +10:00
addcards.py use a clearer name for fmtQA() 2017-03-14 15:48:40 +09:00
addons.py Fix NameError caused by missing import 2017-02-15 23:08:37 +09:30
browser.py fix deck expanded state being reset 2017-06-14 11:43:47 +10:00
clayout.py prevent preview stealing focus in clayout 2017-01-10 18:32:48 +10:00
customstudy.py Improve usability of increase new/review card limit dialog 2017-02-11 20:11:31 +01:00
deckbrowser.py another attempt at fixing key handling 2017-06-22 16:39:31 +10:00
deckchooser.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
deckconf.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
downloader.py tweaks to add-on downloading 2017-02-15 15:55:31 +10:00
dyndeckconf.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
editcurrent.py saveNow() now requires a callback 2016-07-14 20:23:44 +10:00
editor.py add m4a to attachable media formats 2017-03-02 12:10:13 +10:00
errors.py suggest users start with add-ons disabled to diagnose problem 2017-04-28 13:31:40 +10:00
exporting.py fix exporting & one bug in stats image export 2016-07-05 19:52:26 +10:00
fields.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
importing.py Fix error caused by converting delimiter to bytes 2017-02-15 18:45:04 +09:30
main.py another attempt at fixing key handling 2017-06-22 16:39:31 +10:00
mediasrv.py fix embedded fonts 2017-02-21 13:27:29 +10:00
modelchooser.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
models.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
overview.py another attempt at fixing key handling 2017-06-22 16:39:31 +10:00
preferences.py write backups in thread; remove strip html & compress options 2017-01-08 19:29:57 +10:00
profiles.py use QStandardPaths instead of the env var 2017-02-25 18:07:01 +10:00
progress.py Stop inheriting from object 2017-02-07 00:21:33 +02:00
qt.py require qt 5.9 2017-06-06 14:33:53 +10:00
reviewer.py another attempt at fixing key handling 2017-06-22 16:39:31 +10:00
sound.py optimize imports 2012-12-22 09:17:10 +09:00
stats.py make sure stats window starts focused on osx 2017-06-07 11:50:29 +10:00
studydeck.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
sync.py partial sync cancellation 2017-01-17 17:15:50 +10:00
tagedit.py port majority of code to qt5.5+ 2016-05-31 18:51:40 +10:00
taglimit.py Limit tags in custom study dialog to those in the selected deck 2015-11-21 14:38:21 +02:00
toolbar.py Stop inheriting from object 2017-02-07 00:21:33 +02:00
update.py use requests for http; add progress info back 2017-01-08 19:06:32 +10:00
utils.py Merge pull request #186 from wetriner/master 2017-05-04 11:59:49 +10:00
webview.py another attempt at fixing key handling 2017-06-22 16:39:31 +10:00