From: Vadim Zeitlin Date: Fri, 4 Aug 2006 11:35:42 +0000 (+0000) Subject: only multiline text controls need Enter key for themselves X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/eedf954b20b9e9151307c609e6b4f085c12ce626 only multiline text controls need Enter key for themselves git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 3f8402ded1..9b807e8b7a 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -1809,7 +1809,7 @@ bool wxTextCtrl::MSWShouldPreProcessMessage(WXMSG* msg) // fall through case 0: - if ( vkey == VK_RETURN ) + if ( IsMultiLine() && vkey == VK_RETURN ) return false; // fall through case 2: