diff --git a/aqt/editor.py b/aqt/editor.py index 6183abfb9..930eb4b54 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -266,6 +266,9 @@ class Editor: self.checkValid() runHook("loadNote", self) + if focusTo is not None: + self.web.setFocus() + self.web.evalWithCallback("setFields(%s, %s); setFonts(%s); focusField(%s)" % ( json.dumps(data), json.dumps(self.prewrapMode()), json.dumps(self.fonts()), json.dumps(focusTo)),