From eb3208e1e7c3001c9a39aaf7c62c411d3ef4cbd7 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 28 Jun 2016 15:52:13 +1000 Subject: [PATCH] QKeySequence.Cancel is not in 5.5 --- aqt/webview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/webview.py b/aqt/webview.py index 333c2ed15..6445cfdd5 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -91,7 +91,7 @@ class AnkiWebView(QWebEngineView): if evt.matches(QKeySequence.Paste): self.onPaste() return True - if evt.matches(QKeySequence.Cancel): + if evt.key() == Qt.Key_Escape: # cheap hack to work around webengine swallowing escape key that # usually closes dialogs w = self.parent()