This commit is contained in:
Andreas Preikschat 2013-02-20 08:29:03 +01:00
parent b6efe5393d
commit 26599b0f73

View File

@ -97,8 +97,7 @@ class ShortcutListForm(QtGui.QDialog, Ui_ShortcutListDialog):
self.dialog_was_shown = False self.dialog_was_shown = False
return return
key = event.key() key = event.key()
if key == QtCore.Qt.Key_Shift or key == QtCore.Qt.Key_Control or \ if key in (QtCore.Qt.Key_Shift, QtCore.Qt.Key_Control, QtCore.Qt.Key_Meta, QtCore.Qt.Key_Alt):
key == QtCore.Qt.Key_Meta or key == QtCore.Qt.Key_Alt:
return return
key_string = QtGui.QKeySequence(key).toString() key_string = QtGui.QKeySequence(key).toString()
if event.modifiers() & QtCore.Qt.ControlModifier == QtCore.Qt.ControlModifier: if event.modifiers() & QtCore.Qt.ControlModifier == QtCore.Qt.ControlModifier: