fix infinite recursion when processing navigation keys in panels containing book controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0fdd3cc881
commit
5f28de16f3
@ -307,8 +307,15 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event )
|
||||
}
|
||||
}
|
||||
|
||||
if ( bookctrl && bookctrl->GetEventHandler()->ProcessEvent(event) )
|
||||
return;
|
||||
if ( bookctrl )
|
||||
{
|
||||
// make sure that we don't bubble up the event again from the book
|
||||
// control resulting in infinite recursion
|
||||
wxNavigationKeyEvent eventCopy(event);
|
||||
eventCopy.SetEventObject(m_winParent);
|
||||
if ( bookctrl->GetEventHandler()->ProcessEvent(eventCopy) )
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// there is not much to do if we don't have children and we're not
|
||||
|
Loading…
Reference in New Issue
Block a user