diff --git a/aqt/webview.py b/aqt/webview.py index fa936d6ff..dfe57c452 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -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)