fix esc key in type answer field

without the change, the selection disappears but typed characters
still go to the input area
This commit is contained in:
Damien Elmes 2017-06-22 15:10:47 +10:00
parent ac81fefc14
commit 22f2fdf7d6

View file

@ -108,7 +108,7 @@ class AnkiWebView(QWebEngineView):
if w != mw:
w.close()
else:
self.clearFocus()
self.parent().setFocus()
break
w = w.parent()
return True