Drop Down Widgets / Enter on Numeric Key Pad
David Ayers <[email protected]> Mon, 09 Jun 2008 11:28:37 +0200
| Newsgroups | gmane.comp.gnu.enterprise.general |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ Gnue mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnue
gnue.patch
(text/x-diff, 494 B)
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)