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.
This commit is contained in:
Fulvio Senore 2020-01-31 15:41:55 +01:00 committed by Vadim Zeitlin
parent 0a56399f3c
commit 9d470f6433

View File

@ -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