[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUe] Drop Down Widgets / Enter on Numeric Key Pad
From: |
David Ayers |
Subject: |
[GNUe] Drop Down Widgets / Enter on Numeric Key Pad |
Date: |
Mon, 09 Jun 2008 11:28:37 +0200 |
User-agent: |
Mozilla-Thunderbird 2.0.0.14 (X11/20080509) |
Hello,
Currently when pressing <ENTER> on the numeric keypad on
dropdown-widgets, the navigation does not continue.
By simple code comparison, I came up with this patch, which seems to
"work for me"™ but I do not have enough understanding of the inner
workings to understand potential side effects or to label this a fix.
Please review :-)
Cheers,
David
Index: src/uidrivers/wx26/widgets/entry.py
===================================================================
--- src/uidrivers/wx26/widgets/entry.py (Revision 9875)
+++ src/uidrivers/wx26/widgets/entry.py (Arbeitskopie)
@@ -174,6 +174,7 @@
else:
result.Bind(wx.EVT_TEXT, self.__on_text_changed)
+ item.Bind(wx.EVT_CHAR, self.__on_keypress)
item.Bind(wx.EVT_SET_FOCUS, self.__on_set_focus)
item.Bind(wx.EVT_KEY_DOWN, self.__on_combo_keydown)
- [GNUe] Drop Down Widgets / Enter on Numeric Key Pad,
David Ayers <=