From: Kevin Hock Date: Fri, 21 Jan 2005 20:04:00 +0000 (+0000) Subject: Do not emit a wxEVT_COMMAND_TEXT_UPDATED when the tab key is lifted (otherwise each... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9da00e91b4ad147584297b1a64cc1abfa50ee010 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 --- diff --git a/src/mac/carbon/combobox.cpp b/src/mac/carbon/combobox.cpp index 2b758e3fb0..e38374b2cc 100644 --- a/src/mac/carbon/combobox.cpp +++ b/src/mac/carbon/combobox.cpp @@ -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() );