From e49d331c479d3f852a48f96628e91c6b64f5fb8c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 13 Dec 2007 19:10:04 +0000 Subject: [PATCH 1/1] don't allow TAB-bing away to other TLWs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/containr.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common/containr.cpp b/src/common/containr.cpp index 2f702e6f1a..d441b5c7c4 100644 --- a/src/common/containr.cpp +++ b/src/common/containr.cpp @@ -496,6 +496,14 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event ) wxWindow *child = node->GetData(); + // don't TAB to another TLW + if ( child->IsTopLevel() ) + { + node = forward ? node->GetNext() : node->GetPrevious(); + + continue; + } + #if defined(__WXMSW__) && wxUSE_RADIOBTN if ( event.IsFromTab() ) { -- 2.45.2