mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 14:47:12 -05:00
QKeySequence.Cancel is not in 5.5
This commit is contained in:
parent
de6ee8819f
commit
eb3208e1e7
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ class AnkiWebView(QWebEngineView):
|
||||||
if evt.matches(QKeySequence.Paste):
|
if evt.matches(QKeySequence.Paste):
|
||||||
self.onPaste()
|
self.onPaste()
|
||||||
return True
|
return True
|
||||||
if evt.matches(QKeySequence.Cancel):
|
if evt.key() == Qt.Key_Escape:
|
||||||
# cheap hack to work around webengine swallowing escape key that
|
# cheap hack to work around webengine swallowing escape key that
|
||||||
# usually closes dialogs
|
# usually closes dialogs
|
||||||
w = self.parent()
|
w = self.parent()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue