No real changes, just rename a variable.
"focussed" spelling is unusual and inconsistent with "focused" used in many other places in the same file, so renamed "focussed_child_of_parent" and also use standard camelCase naming convention for it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -472,18 +472,18 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event )
|
|||||||
// looping inside this panel (normally, the focus will go to
|
// looping inside this panel (normally, the focus will go to
|
||||||
// the next/previous item after this panel in the parent
|
// the next/previous item after this panel in the parent
|
||||||
// panel).
|
// panel).
|
||||||
wxWindow *focussed_child_of_parent = m_winParent;
|
wxWindow *focusedParent = m_winParent;
|
||||||
while ( parent )
|
while ( parent )
|
||||||
{
|
{
|
||||||
// we don't want to tab into a different dialog or frame
|
// we don't want to tab into a different dialog or frame
|
||||||
if ( focussed_child_of_parent->IsTopLevel() )
|
if ( focusedParent->IsTopLevel() )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
event.SetCurrentFocus( focussed_child_of_parent );
|
event.SetCurrentFocus( focusedParent );
|
||||||
if ( parent->GetEventHandler()->ProcessEvent( event ) )
|
if ( parent->GetEventHandler()->ProcessEvent( event ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
focussed_child_of_parent = parent;
|
focusedParent = parent;
|
||||||
|
|
||||||
parent = parent->GetParent();
|
parent = parent->GetParent();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user