skip focus events after handling them in wxTextCtrl, otherwise they never reach wxApp (bug 1875046)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2141,13 +2141,15 @@ void wxTextCtrl::OnContextMenu(wxContextMenuEvent& event)
|
|||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxTextCtrl::OnSetFocus(wxFocusEvent& WXUNUSED(event))
|
void wxTextCtrl::OnSetFocus(wxFocusEvent& event)
|
||||||
{
|
{
|
||||||
// be sure the caret remains invisible if the user had hidden it
|
// be sure the caret remains invisible if the user had hidden it
|
||||||
if ( !m_isNativeCaretShown )
|
if ( !m_isNativeCaretShown )
|
||||||
{
|
{
|
||||||
::HideCaret(GetHwnd());
|
::HideCaret(GetHwnd());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user