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/branches/WX_2_8_BRANCH@51282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-01-19 03:35:47 +00:00
parent e5a898b54d
commit 87c5dec670

View File

@@ -2273,13 +2273,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();
}
// ----------------------------------------------------------------------------