pass all keyboard events to shortcut dialog

This commit is contained in:
Jonathan Springer 2013-12-09 07:24:21 -05:00
parent c40b116824
commit 1133f2e0c7

View File

@ -79,7 +79,7 @@ class ShortcutListForm(QtGui.QDialog, Ui_ShortcutListDialog):
self.keyReleaseEvent(event) self.keyReleaseEvent(event)
elif self.primaryPushButton.isChecked() or \ elif self.primaryPushButton.isChecked() or \
self.alternatePushButton.isChecked(): self.alternatePushButton.isChecked():
event.ignore() self.keyReleaseEvent(event)
elif event.key() == QtCore.Qt.Key_Escape: elif event.key() == QtCore.Qt.Key_Escape:
event.accept() event.accept()
self.close() self.close()