[gnue] r9497 - trunk/gnue-forms/src/uidrivers/win32/widgets

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: btami
Date: 2007-04-12 07:44:52 -0500 (Thu, 12 Apr 2007)
New Revision: 9497

Modified:
   trunk/gnue-forms/src/uidrivers/win32/widgets/_base.py
Log:
keyboard event handling fix

Modified: trunk/gnue-forms/src/uidrivers/win32/widgets/_base.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/win32/widgets/_base.py	2007-04-11 20:08:51 UTC (rev 9496)
+++ trunk/gnue-forms/src/uidrivers/win32/widgets/_base.py	2007-04-12 12:44:52 UTC (rev 9497)
@@ -194,7 +194,7 @@
                       ControlDown,
                       AltDown)
 
-                    if command:
+                    if command:
                         uiObject = self._uiDriver._IdToUIObj[self._id]
                         # handle up and down arrows in multiline edit
                         if gfObject._type == 'GFEntry'  and \
@@ -214,8 +214,7 @@
                                 uiObject._request ('CURSORMOVE', position = pos)
 
                         else:
-                            action = events.Event('request%s' % command, arguments=args)
-
+                            action = events.Event('request%s' % command, triggerName = args)
                             # Add the object's _form to the outgoing event
                             # rather than every event in the function
                             action.__dict__.update({'_form':gfObject._form})
@@ -273,7 +272,7 @@
                              code=10)
 
             elif command and not keycode in NOT_WM_CHAR_KEYS:
-                action = events.Event('request%s' % command)
+                action = events.Event('request%s' % command, triggerName = args)
 
             else:
                 try:
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.