From a878a5c7b45348fa6c3a82ae30c0d4d799900820 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 6 May 2012 18:53:06 +0900 Subject: [PATCH] focus editor area on drop so contents are saved --- aqt/editor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aqt/editor.py b/aqt/editor.py index fe622dae8..25141f2c2 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -990,6 +990,7 @@ class EditorWebView(AnkiWebView): QWebView.dropEvent(self, new) # tell the drop target to take focus so the drop contents are saved self.eval("dropTarget.focus();") + self.setFocus() def prepareClip(self, mode=QClipboard.Clipboard): clip = self.editor.mw.app.clipboard()