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:
@@ -1377,6 +1377,13 @@ void wxAuiTabCtrl::OnChar(wxKeyEvent& event)
|
|||||||
bool bWindowChange = (key == WXK_PAGEUP) || (key == WXK_PAGEDOWN) || bCtrlDown;
|
bool bWindowChange = (key == WXK_PAGEUP) || (key == WXK_PAGEDOWN) || bCtrlDown;
|
||||||
bool bFromTab = (key == WXK_TAB);
|
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);
|
wxAuiNotebook* nb = wxDynamicCast(GetParent(), wxAuiNotebook);
|
||||||
if (!nb)
|
if (!nb)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user