Do not emit a wxEVT_COMMAND_TEXT_UPDATED when the tab key is lifted (otherwise each time you tab into the combobox, the text updated event is fired, which is wrong)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Hock
2005-01-21 20:04:00 +00:00
parent 16cba29d3a
commit 9da00e91b4

View File

@@ -119,7 +119,7 @@ protected:
// but this is less complicated than dealing with idle-ness, and is much better than nothing
void OnKeyUp( wxKeyEvent& event )
{
if ( event.GetKeyCode() != WXK_RETURN )
if ( event.GetKeyCode() != WXK_RETURN && event.GetKeyCode() != WXK_TAB )
{
wxCommandEvent event(wxEVT_COMMAND_TEXT_UPDATED, m_cb->GetId());
event.SetString( GetValue() );