diff --git a/aqt/editor.py b/aqt/editor.py index fb0379bcf..8793b57f9 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -245,7 +245,7 @@ class Editor: "editFocusLost", False, self.note, ord): # something updated the note; update it after a subsequent focus # event has had time to fire - self.mw.progress.timer(100, self.loadNote, False) + self.mw.progress.timer(100, self.loadNoteKeepingFocus, False) else: self.checkValid() else: @@ -279,6 +279,9 @@ class Editor: if hide: self.widget.hide() + def loadNoteKeepingFocus(self): + self.loadNote(self.currentField) + def loadNote(self, focusTo=None): if not self.note: return