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
This commit is contained in:
Vadim Zeitlin
2007-12-13 19:10:04 +00:00
parent 92a93d4659
commit e49d331c47

View File

@@ -496,6 +496,14 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event )
wxWindow *child = node->GetData(); 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 defined(__WXMSW__) && wxUSE_RADIOBTN
if ( event.IsFromTab() ) if ( event.IsFromTab() )
{ {