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:
parent
0a56399f3c
commit
9d470f6433
@ -2086,6 +2086,9 @@ void wxComboCtrlBase::OnCharEvent(wxKeyEvent& event)
|
|||||||
|
|
||||||
void wxComboCtrlBase::OnFocusEvent( wxFocusEvent& 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
|
// On Mac, setting focus here led to infinite recursion so
|
||||||
// m_resetFocus is used as a guard
|
// m_resetFocus is used as a guard
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user