forked from openlp/openlp
Trap meta key combinations for bug 743273. (Tested with Win key on Windows, don't have OS-X to test CMD key)
This commit is contained in:
parent
212103ce7b
commit
e1dc332be4
@ -98,6 +98,9 @@ class ShortcutListForm(QtGui.QDialog, Ui_ShortcutListDialog):
|
|||||||
if event.modifiers() & QtCore.Qt.ShiftModifier == \
|
if event.modifiers() & QtCore.Qt.ShiftModifier == \
|
||||||
QtCore.Qt.ShiftModifier:
|
QtCore.Qt.ShiftModifier:
|
||||||
key_string = u'Shift+' + key_string
|
key_string = u'Shift+' + key_string
|
||||||
|
if event.modifiers() & QtCore.Qt.MetaModifier == \
|
||||||
|
QtCore.Qt.MetaModifier:
|
||||||
|
key_string = u'Meta+' + key_string
|
||||||
key_sequence = QtGui.QKeySequence(key_string)
|
key_sequence = QtGui.QKeySequence(key_string)
|
||||||
if self._validiate_shortcut(self._currentItemAction(), key_sequence):
|
if self._validiate_shortcut(self._currentItemAction(), key_sequence):
|
||||||
if self.primaryPushButton.isChecked():
|
if self.primaryPushButton.isChecked():
|
||||||
|
Loading…
Reference in New Issue
Block a user