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:
Vadim Zeitlin
2008-01-19 03:35:47 +00:00
parent 8eb7181ca7
commit 50c6e05f3d

View File

@@ -2141,13 +2141,15 @@ void wxTextCtrl::OnContextMenu(wxContextMenuEvent& event)
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
if ( !m_isNativeCaretShown )
{
::HideCaret(GetHwnd());
}
event.Skip();
}
// ----------------------------------------------------------------------------