make wxFrame a wxControlContainer too, so that it behaves in the same way as wxDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -75,10 +75,8 @@ bool wxControlContainerBase::ShouldAcceptFocus() const
|
||||
wxWindow *child = node->GetData();
|
||||
node = node->GetNext();
|
||||
|
||||
#ifdef __WXMAC__
|
||||
if ( m_winParent->MacIsWindowScrollbar( child ) )
|
||||
if ( !m_winParent->IsClientAreaChild(child) )
|
||||
continue;
|
||||
#endif
|
||||
|
||||
if ( child->CanAcceptFocus() )
|
||||
return false;
|
||||
@@ -658,11 +656,10 @@ bool wxSetFocusToChild(wxWindow *win, wxWindow **childLastFocused)
|
||||
wxWindow *child = node->GetData();
|
||||
node = node->GetNext();
|
||||
|
||||
#ifdef __WXMAC__
|
||||
if ( child->GetParent()->MacIsWindowScrollbar( child ) )
|
||||
// skip special windows:
|
||||
if ( !win->IsClientAreaChild(child) )
|
||||
continue;
|
||||
#endif
|
||||
|
||||
|
||||
if ( child->CanAcceptFocusFromKeyboard() && !child->IsTopLevel() )
|
||||
{
|
||||
#ifdef __WXMSW__
|
||||
|
Reference in New Issue
Block a user