X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6ad49e18b9ed3623b263e7b45e78f53dec395ede..da2101204027855793c4264388b95a208967ae15:/src/mac/carbon/textctrl.cpp diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index 86d6e450d4..b1ae31ebe5 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -1987,7 +1987,12 @@ void wxTextCtrl::OnChar(wxKeyEvent& event) case WXK_TAB: if ( !(m_windowStyle & wxTE_PROCESS_TAB)) { - Navigate(!event.ShiftDown(), event.ControlDown()); + int flags = 0; + if (!event.ShiftDown()) + flags |= wxNavigationKeyEvent::IsForward ; + if (event.ControlDown()) + flags |= wxNavigationKeyEvent::WinChange ; + Navigate(flags); return; } else