Do not emit a wxEVT_COMMAND_TEXT_UPDATED when the tab key is lifted (otherwise each...
authorKevin Hock <hockkn@yahoo.com>
Fri, 21 Jan 2005 20:04:00 +0000 (20:04 +0000)
committerKevin Hock <hockkn@yahoo.com>
Fri, 21 Jan 2005 20:04:00 +0000 (20:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/combobox.cpp

index 2b758e3fb02e4454d2b20550cc4b47f3da788ecc..e38374b2cc15ce93af29105cbd7cb9b5c441fb1f 100644 (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() );