From 4453c7082f76f42c222e9b08467e0f7f82616dec Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 11 Feb 2008 01:21:46 +0000 Subject: [PATCH] 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 --- src/common/containr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/containr.cpp b/src/common/containr.cpp index 43de0255b0..8f41d782f2 100644 --- a/src/common/containr.cpp +++ b/src/common/containr.cpp @@ -566,7 +566,7 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event ) } #endif // __WXMSW__ - if ( child->CanAcceptFocusFromKeyboard() ) + if ( child->CanAcceptFocus() ) { // 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