mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
select all shortcut in fields
This commit is contained in:
parent
5655448919
commit
37bac3979c
1 changed files with 3 additions and 0 deletions
|
@ -91,6 +91,9 @@ class AnkiWebView(QWebEngineView):
|
|||
if evt.matches(QKeySequence.Paste) and isMac:
|
||||
self.onPaste()
|
||||
return True
|
||||
if evt.matches(QKeySequence.SelectAll):
|
||||
self.triggerPageAction(QWebEnginePage.SelectAll)
|
||||
return False
|
||||
if evt.key() == Qt.Key_Escape:
|
||||
# cheap hack to work around webengine swallowing escape key that
|
||||
# usually closes dialogs
|
||||
|
|
Loading…
Reference in a new issue