From 954557e23cb67d7a3d20f67235503576bbc2a27d Mon Sep 17 00:00:00 2001 From: Tim Kosse Date: Wed, 6 Aug 2014 14:57:02 +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/trunk@77014 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 7142617b77..a77b5af441 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) {