]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/containr.cpp
Fix history in wxWebViewIE when using a custom file scheme.
[wxWidgets.git] / src / common / containr.cpp
index 910804bc4d811c9630da4b0db13ba604c6ef3975..2fda844c9620a456882a0212a4857535c6624edb 100644 (file)
@@ -475,8 +475,11 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event )
                 wxWindow *focusedParent = m_winParent;
                 while ( parent )
                 {
-                    // we don't want to tab into a different dialog or frame
-                    if ( focusedParent->IsTopLevel() )
+                    // We don't want to tab into a different dialog or frame or
+                    // even an MDI child frame, so test for this explicitly
+                    // (and in particular don't just use IsTopLevel() which
+                    // would return false in the latter case).
+                    if ( focusedParent->IsTopNavigationDomain() )
                         break;
 
                     event.SetCurrentFocus( focusedParent );