From 91d5693bf7da0b849c5219f8467a66ecd172dcf4 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 31 May 2012 19:02:16 +0900 Subject: [PATCH] after html edit, focus changed field so it gets saved --- aqt/editor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aqt/editor.py b/aqt/editor.py index b9e83df80..5c4200a50 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -637,6 +637,9 @@ class Editor(object): html = unicode(BeautifulSoup(html)) self.note.fields[self.currentField] = html self.loadNote() + # focus field so it's saved + self.web.setFocus() + self.web.eval("focusField(%d);" % self.currentField) # Tag handling ######################################################################