focus editor area on drop so contents are saved

This commit is contained in:
Damien Elmes 2012-05-06 18:53:06 +09:00
parent 0b3291d589
commit a878a5c7b4

View file

@ -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()