From: Vadim Zeitlin <vadim@wxwidgets.org> Date: Sun, 21 Apr 2002 00:33:21 +0000 (+0000) Subject: use SetFocusFromKbd() instead of SetFocus() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5463c0a4e1076acc16e218b8c282d8b2b278d403 use SetFocusFromKbd() instead of SetFocus() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/containr.cpp b/src/common/containr.cpp index c387c5da20..90a20eb833 100644 --- a/src/common/containr.cpp +++ b/src/common/containr.cpp @@ -237,7 +237,7 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event ) if ( !child->GetEventHandler()->ProcessEvent(event) ) { // everything is simple: just give focus to it - child->SetFocus(); + child->SetFocusFromKbd(); m_winLastFocused = child; } @@ -360,7 +360,7 @@ bool wxSetFocusToChild(wxWindow *win, wxWindow **childLastFocused) _T("SetFocusToChild() => last child (0x%08x)."), (*childLastFocused)->GetHandle()); - (*childLastFocused)->SetFocus(); + (*childLastFocused)->SetFocusFromKbd(); return TRUE; } else @@ -383,7 +383,7 @@ bool wxSetFocusToChild(wxWindow *win, wxWindow **childLastFocused) child->GetHandle()); *childLastFocused = child; // should be redundant, but it is not - child->SetFocus(); + child->SetFocusFromKbd(); return TRUE; }