]> git.saurik.com Git - wxWidgets.git/commitdiff
don't allow TAB-bing away to other TLWs
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 13 Dec 2007 19:10:04 +0000 (19:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 13 Dec 2007 19:10:04 +0000 (19:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/containr.cpp

index 2f702e6f1af7831f0b4f2ae9e4bd4f45963b9cb5..d441b5c7c469e30d08e690437f460c9889359af4 100644 (file)
@@ -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() )
         {