EVT_TEXT_ENTER handler on a combobox needs evt.Skip() otherwise the

dropdown may not close


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-04-04 23:29:14 +00:00
parent 8ddbb13781
commit 985eb16c7b

View File

@@ -60,11 +60,13 @@ class TestComboBox(wx.Panel):
# Capture events every time a user hits a key in the text entry field.
def EvtText(self, evt):
self.log.WriteText('EvtText: %s\n' % evt.GetString())
evt.Skip()
# Capture events when the user types something into the control then
# hits ENTER.
def EvtTextEnter(self, evt):
self.log.WriteText('EvtTextEnter: %s' % evt.GetString())
evt.Skip()
#---------------------------------------------------------------------------