[gnue] r9602 - trunk/gnue-forms/src/uidrivers/qt3/widgets

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
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,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.