]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/panelg.cpp
fixed bug in PS clipping (non-virtual SetClippingRegion was overloaded)
[wxWidgets.git] / src / generic / panelg.cpp
index 2ed8f5148cc0c12ad711faacae7a9f58a71bbba1..567a882de60f34078e75c910ef1a05415ebed5c2 100644 (file)
@@ -129,6 +129,10 @@ void wxPanel::OnNavigationKey( wxNavigationKeyEvent& event )
            wxWindow *focussed_child_of_p = this;
             for ( wxWindow *p = GetParent(); p; p = p->GetParent() )
             {
+               // we don't want to tab into a different dialog or frame
+               if ( focussed_child_of_p->IsTopLevel() )
+                   break;
+                   
                 if ( wxDynamicCast(p, wxPanel) )
                 {
                    event.SetCurrentFocus( focussed_child_of_p );