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
This commit is contained in:
Tim Kosse
2014-08-06 14:53:00 +00:00
parent 03fb8ebf7b
commit 4c16a3b3e2

View File

@@ -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)
{