From 4c16a3b3e2a1af5d5e81682e609c76962bd2801b Mon Sep 17 00:00:00 2001 From: Tim Kosse Date: Wed, 6 Aug 2014 14:53:00 +0000 Subject: [PATCH] Call wxWindow::Navigate when handling the tab key in wxAuiTabCtrl. This fixes tabbing on wxGTK where it was not possible to tab out of the wxAuiNotebook anymore. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@77013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/auibook.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index af59182588..eb77d897b2 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -1377,6 +1377,13 @@ void wxAuiTabCtrl::OnChar(wxKeyEvent& event) bool bWindowChange = (key == WXK_PAGEUP) || (key == WXK_PAGEDOWN) || bCtrlDown; bool bFromTab = (key == WXK_TAB); + if (bFromTab && !bWindowChange) + { + // Handle ordinary tabs via Navigate. This is needed at least for wxGTK to tab properly. + Navigate(bForward ? wxNavigationKeyEvent::IsForward : wxNavigationKeyEvent::IsBackward); + return; + } + wxAuiNotebook* nb = wxDynamicCast(GetParent(), wxAuiNotebook); if (!nb) {