use CanAcceptFocus() instead of CanAcceptFocusFromKeyboard() when checking if we should TAB into a child because the latter is not recursive and we do want to TAB into panels which don't have focus themselves but have children that do
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -566,7 +566,7 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event )
|
|||||||
}
|
}
|
||||||
#endif // __WXMSW__
|
#endif // __WXMSW__
|
||||||
|
|
||||||
if ( child->CanAcceptFocusFromKeyboard() )
|
if ( child->CanAcceptFocus() )
|
||||||
{
|
{
|
||||||
// if we're setting the focus to a child panel we should prevent it
|
// if we're setting the focus to a child panel we should prevent it
|
||||||
// from giving it to the child which had the focus the last time
|
// from giving it to the child which had the focus the last time
|
||||||
|
Reference in New Issue
Block a user