From 17f9a71586dbbe50ab129f71bbb7d3fcae367ae0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 14 Jul 2019 01:33:09 +0200 Subject: [PATCH] Don't mark WM_CHAR for VK_RETURN as processed if it wasn't This doesn't seem to change anything in practice, but it's more logical to not pretend that we processed the message if we didn't do anything at all with it. --- src/msw/textctrl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 888489fd01..80eec63138 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -2193,9 +2193,8 @@ wxTextCtrl::MSWHandleMessage(WXLRESULT *rc, HasFlag(wxTE_PROCESS_ENTER) && wParam == VK_RETURN ) { - ClickDefaultButtonIfPossible(); - - processed = true; + if ( ClickDefaultButtonIfPossible() ) + processed = true; } switch ( nMsg )