]> git.saurik.com Git - wxWidgets.git/commitdiff
only multiline text controls need Enter key for themselves
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 4 Aug 2006 11:35:42 +0000 (11:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 4 Aug 2006 11:35:42 +0000 (11:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/textctrl.cpp

index 3f8402ded186a477be155228b06d5b7627af4108..9b807e8b7a497d290bc8ef27d82dc34b59856760 100644 (file)
@@ -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: