In wxComboCtrlBase::OnTextCtrlEvent(), make sure to call event.StopPropagation() only after it has been copied
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1770,13 +1770,13 @@ void wxComboCtrlBase::OnTextCtrlEvent(wxCommandEvent& event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
event.StopPropagation();
|
|
||||||
|
|
||||||
// For safety, completely re-create a new wxCommandEvent
|
// For safety, completely re-create a new wxCommandEvent
|
||||||
wxCommandEvent evt2(event);
|
wxCommandEvent evt2(event);
|
||||||
evt2.SetId(GetId());
|
evt2.SetId(GetId());
|
||||||
evt2.SetEventObject(this);
|
evt2.SetEventObject(this);
|
||||||
HandleWindowEvent(evt2);
|
HandleWindowEvent(evt2);
|
||||||
|
|
||||||
|
event.StopPropagation();
|
||||||
}
|
}
|
||||||
|
|
||||||
// call if cursor is on button area or mouse is captured for the button
|
// call if cursor is on button area or mouse is captured for the button
|
||||||
|
Reference in New Issue
Block a user