use SetFocusFromKbd() instead of SetFocus()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -237,7 +237,7 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event )
|
|||||||
if ( !child->GetEventHandler()->ProcessEvent(event) )
|
if ( !child->GetEventHandler()->ProcessEvent(event) )
|
||||||
{
|
{
|
||||||
// everything is simple: just give focus to it
|
// everything is simple: just give focus to it
|
||||||
child->SetFocus();
|
child->SetFocusFromKbd();
|
||||||
|
|
||||||
m_winLastFocused = child;
|
m_winLastFocused = child;
|
||||||
}
|
}
|
||||||
@@ -360,7 +360,7 @@ bool wxSetFocusToChild(wxWindow *win, wxWindow **childLastFocused)
|
|||||||
_T("SetFocusToChild() => last child (0x%08x)."),
|
_T("SetFocusToChild() => last child (0x%08x)."),
|
||||||
(*childLastFocused)->GetHandle());
|
(*childLastFocused)->GetHandle());
|
||||||
|
|
||||||
(*childLastFocused)->SetFocus();
|
(*childLastFocused)->SetFocusFromKbd();
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -383,7 +383,7 @@ bool wxSetFocusToChild(wxWindow *win, wxWindow **childLastFocused)
|
|||||||
child->GetHandle());
|
child->GetHandle());
|
||||||
|
|
||||||
*childLastFocused = child; // should be redundant, but it is not
|
*childLastFocused = child; // should be redundant, but it is not
|
||||||
child->SetFocus();
|
child->SetFocusFromKbd();
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user