From 22f2fdf7d674fa7217f25e16936471ac40f7309e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 22 Jun 2017 15:10:47 +1000 Subject: [PATCH] fix esc key in type answer field without the change, the selection disappears but typed characters still go to the input area --- aqt/webview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/webview.py b/aqt/webview.py index 63e0d3f16..aee62a1fd 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -108,7 +108,7 @@ class AnkiWebView(QWebEngineView): if w != mw: w.close() else: - self.clearFocus() + self.parent().setFocus() break w = w.parent() return True