forked from openlp/openlp
clean up
This commit is contained in:
parent
b6efe5393d
commit
26599b0f73
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user