fix for setting m_winLastFocused correctly in some situations (see bug 622297)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -247,10 +247,12 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event )
|
||||
event.SetEventObject(m_winParent);
|
||||
if ( !child->GetEventHandler()->ProcessEvent(event) )
|
||||
{
|
||||
// set it first in case SetFocusFromKbd() results in focus
|
||||
// change too
|
||||
m_winLastFocused = child;
|
||||
|
||||
// everything is simple: just give focus to it
|
||||
child->SetFocusFromKbd();
|
||||
|
||||
m_winLastFocused = child;
|
||||
}
|
||||
//else: the child manages its focus itself
|
||||
|
||||
|
Reference in New Issue
Block a user