From: Vadim Zeitlin Date: Wed, 8 Mar 2006 00:23:36 +0000 (+0000) Subject: generate wxEVT_COMMAND_TEXT_ENTER for multiline controls too X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9a3952fad895c37a0ae8c34a968b7ae7ff8b9a55 generate wxEVT_COMMAND_TEXT_ENTER for multiline controls too git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 180b5bbdd6..9630d087b9 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -1800,16 +1800,15 @@ void wxTextCtrl::OnChar(wxKeyEvent& event) switch ( event.GetKeyCode() ) { case WXK_RETURN: - if ( !HasFlag(wxTE_MULTILINE) ) { wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, m_windowId); InitCommandEvent(event); event.SetString(GetValue()); if ( GetEventHandler()->ProcessEvent(event) ) + if ( !HasFlag(wxTE_MULTILINE) ) return; + //else: multiline controls need Enter for themselves } - //else: multiline controls need Enter for themselves - break; case WXK_TAB: