diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 52637d901c..fed5741b58 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -2080,7 +2080,7 @@ void wxTextCtrl::OnChar(wxKeyEvent& event) { if ( ::GetFocus() == GetHwnd() ) { - int flags = 0; + int flags = wxNavigationKeyEvent::FromTab; if (!event.ShiftDown()) flags |= wxNavigationKeyEvent::IsForward ; if (event.ControlDown())