Little correction to the shortcut definition dialog.

Sat, 04 Jan 2014 18:09:21 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 04 Jan 2014 18:09:21 +0100
changeset 3170
b177fe3b0063
parent 3169
7b1b754a60a6
child 3171
2c37b9a37b2d

Little correction to the shortcut definition dialog.

Preferences/ShortcutDialog.py file | annotate | diff | comparison | revisions
--- a/Preferences/ShortcutDialog.py	Sat Jan 04 16:23:47 2014 +0100
+++ b/Preferences/ShortcutDialog.py	Sat Jan 04 18:09:21 2014 +0100
@@ -131,15 +131,9 @@
         
         @param evt the key event (QKeyEvent)
         """
-        if evt.key() == Qt.Key_Control:
-            return
-        if evt.key() == Qt.Key_Meta:
-            return
-        if evt.key() == Qt.Key_Shift:
-            return
-        if evt.key() == Qt.Key_Alt:
-            return
-        if evt.key() == Qt.Key_Menu:
+        if evt.key() in [Qt.Key_Control, Qt.Key_Meta, Qt.Key_Shift, Qt.Key_Alt,
+                         Qt.Key_Menu, Qt.Key_Hyper_L, Qt.Key_Hyper_R,
+                         Qt.Key_Super_L, Qt.Key_Super_R]:
             return
     
         if self.keyIndex == 4:

eric ide

mercurial