mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
ignore copy/paste shortcuts except on mac
This commit is contained in:
parent
eddef71f75
commit
7d0eb6dd39
1 changed files with 3 additions and 3 deletions
|
@ -82,13 +82,13 @@ class AnkiWebView(QWebEngineView):
|
|||
def eventFilter(self, obj, evt):
|
||||
if not isinstance(evt, QKeyEvent) or obj != self:
|
||||
return False
|
||||
if evt.matches(QKeySequence.Copy):
|
||||
if evt.matches(QKeySequence.Copy) and isMac:
|
||||
self.onCopy()
|
||||
return True
|
||||
if evt.matches(QKeySequence.Cut):
|
||||
if evt.matches(QKeySequence.Cut) and isMac:
|
||||
self.onCut()
|
||||
return True
|
||||
if evt.matches(QKeySequence.Paste):
|
||||
if evt.matches(QKeySequence.Paste) and isMac:
|
||||
self.onPaste()
|
||||
return True
|
||||
if evt.key() == Qt.Key_Escape:
|
||||
|
|
Loading…
Reference in a new issue