commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5810 - trunk/gnue-forms/src/uidrivers/wx


From: btami
Subject: r5810 - trunk/gnue-forms/src/uidrivers/wx
Date: Wed, 12 May 2004 15:09:51 -0500 (CDT)

Author: btami
Date: 2004-05-12 15:09:51 -0500 (Wed, 12 May 2004)
New Revision: 5810

Modified:
   trunk/gnue-forms/src/uidrivers/wx/common.py
Log:
fixed listbox selection with keyboard (space)

Modified: trunk/gnue-forms/src/uidrivers/wx/common.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx/common.py 2004-05-12 17:55:18 UTC (rev 
5809)
+++ trunk/gnue-forms/src/uidrivers/wx/common.py 2004-05-12 20:09:51 UTC (rev 
5810)
@@ -240,13 +240,13 @@
                      text='\n',
                      code=10)
 
-    elif command:
-      # let listbox handle PgUp,PgDn,Up,Down keys
-      if object.style == 'listbox' and object._type == 'GFEntry' and (keycode 
in (312,313,317,319)):
+    # let listbox handle Space,PgUp,PgDn,Up,Down keys
+    elif object.style == 'listbox' and object._type == 'GFEntry' and (keycode 
in (32,312,313,317,319)):
         event.Skip()
-      else:
-        action = events.Event('request%s' % command)
 
+    elif command:
+      action = events.Event('request%s' % command)
+
     elif object._type == 'GFButton':
       action = events.Event('buttonActivated',object)
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]