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:
@@ -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() );
|
||||
|
Reference in New Issue
Block a user