diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 2f7bc4d21a..686435b620 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -2078,7 +2078,7 @@ void wxTextCtrl::OnChar(wxKeyEvent& event) // forces at the moment unfortunately if ( !(m_windowStyle & wxTE_PROCESS_TAB)) { - if ( FindFocus() == this ) + if ( ::GetFocus() == GetHwnd() ) { int flags = 0; if (!event.ShiftDown())