From 9d470f6433ac1c6bc2b3fc6e96e78dda4cd1f4a1 Mon Sep 17 00:00:00 2001 From: Fulvio Senore Date: Fri, 31 Jan 2020 15:41:55 +0100 Subject: [PATCH] Fix focus-related problems in wxComboCtrl under MSW Allow default handling of focus events to take place, this is needed at least under MSW to avoid confusing the system focus-tracking logic. --- src/common/combocmn.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/combocmn.cpp b/src/common/combocmn.cpp index d3920f9d8c..5ede7dfd42 100644 --- a/src/common/combocmn.cpp +++ b/src/common/combocmn.cpp @@ -2086,6 +2086,9 @@ void wxComboCtrlBase::OnCharEvent(wxKeyEvent& event) void wxComboCtrlBase::OnFocusEvent( wxFocusEvent& event ) { + // Always let default handling of focus events to take place. + event.Skip(); + // On Mac, setting focus here led to infinite recursion so // m_resetFocus is used as a guard