X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6aeb6f2a5810694b5241eb267d71dab4848cf8bb..c7de4135b619a045593a42dcbb1d1e8a7858cdcc:/src/common/containr.cpp 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; }