mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
focus web area after delay in editcurrent
if fired immediately, web area fails to gain focus, leading to a jumping cursor when clicking on a field for the first time https://anki.tenderapp.com/discussions/beta-testing/1348-anki-217-beta#comment_46821120
This commit is contained in:
parent
aff810c18a
commit
288ab2f8bf
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class EditCurrent(QDialog):
|
|||
self.mw.requireReset()
|
||||
self.show()
|
||||
# reset focus after open
|
||||
self.editor.web.setFocus()
|
||||
self.mw.progress.timer(100, self.editor.web.setFocus, False)
|
||||
|
||||
def onReset(self):
|
||||
# lazy approach for now: throw away edits
|
||||
|
|
Loading…
Reference in a new issue