From ef03d3bb9346e732f8c8721a2534779474501c0f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 14 Jul 2019 01:34:23 +0200 Subject: [PATCH] Fix "Enter" in wxComboBox with wxTE_PROCESS_ENTER in wxMSW Activate the default button of the dialog containing the wxComboBox if wxEVT_TEXT_ENTER handler didn't process the even, just as it was already done for wxTextCtrl. See #18273. --- src/msw/combobox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/msw/combobox.cpp b/src/msw/combobox.cpp index e2072b31cc..afb0a7f06d 100644 --- a/src/msw/combobox.cpp +++ b/src/msw/combobox.cpp @@ -243,6 +243,9 @@ bool wxComboBox::MSWProcessEditSpecialKey(WXWPARAM vkey) // beep if it gets it return true; } + + if ( ClickDefaultButtonIfPossible() ) + return true; } break;