mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
disallow ctrl+shift etc as well to trigger links (#590)
This commit is contained in:
parent
8aadb18d4d
commit
5e8bb48c3a
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class AnkiWebView(QWebView):
|
||||||
self.triggerPageAction(QWebPage.Copy)
|
self.triggerPageAction(QWebPage.Copy)
|
||||||
evt.accept()
|
evt.accept()
|
||||||
# work around a bug with windows qt where shift triggers buttons
|
# work around a bug with windows qt where shift triggers buttons
|
||||||
if isWin and evt.modifiers() == Qt.ShiftModifier and not evt.text():
|
if isWin and evt.modifiers() & Qt.ShiftModifier and not evt.text():
|
||||||
evt.accept()
|
evt.accept()
|
||||||
return
|
return
|
||||||
QWebView.keyPressEvent(self, evt)
|
QWebView.keyPressEvent(self, evt)
|
||||||
|
|
Loading…
Reference in a new issue