disallow ctrl+shift etc as well to trigger links (#590)

This commit is contained in:
Damien Elmes 2013-01-28 12:17:53 +09:00
parent 8aadb18d4d
commit 5e8bb48c3a

View file

@ -65,7 +65,7 @@ class AnkiWebView(QWebView):
self.triggerPageAction(QWebPage.Copy)
evt.accept()
# 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()
return
QWebView.keyPressEvent(self, evt)