]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/containr.cpp
compute scrollbar widths in a more standard way, get rid of redundant m_hasScrolling...
[wxWidgets.git] / 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() )
         {