From 50c6e05f3de1558af0c0afee70604fd329f913df Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 19 Jan 2008 03:35:47 +0000 Subject: [PATCH] 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 --- src/msw/textctrl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 412c7a551a..0a8e54ea59 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -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(); } // ---------------------------------------------------------------------------- -- 2.45.2