Author: johannes
Date: 2007-05-22 04:08:41 -0500 (Tue, 22 May 2007)
New Revision: 9602

Modified:
   trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py
Log:
Treat Up- and Down-Key as command-key only if no modifier is used


Modified: trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py 2007-05-22 08:13:07 UTC 
(rev 9601)
+++ trunk/gnue-forms/src/uidrivers/qt3/widgets/entry.py 2007-05-22 09:08:41 UTC 
(rev 9602)
@@ -368,7 +368,10 @@
 
         # We will ask the Key-Mapper for a command only for Tab- and
         # Return-Keys.  Everything else should be handled by the widget
-        is_cmd = keycode in [qt.Qt.Key_Tab, qt.Qt.Key_Return]
+        if keycode in [qt.Qt.Key_Up, qt.Qt.Key_Down]:
+            is_cmd = state == 0
+        else:
+            is_cmd = keycode in [qt.Qt.Key_Tab, qt.Qt.Key_Return]
 
         if is_cmd:
             (command, args) = GFKeyMapper.KeyMapper.getEvent(keycode,



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to