]> git.saurik.com Git - wxWidgets.git/commitdiff
use SetFocusFromKbd() instead of SetFocus()
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 21 Apr 2002 00:33:21 +0000 (00:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 21 Apr 2002 00:33:21 +0000 (00:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/containr.cpp

index c387c5da204f16b21fa38dcd8d994ad9a702b2ca..90a20eb8337dfb5a73a95daa1f7595dde1638ddb 100644 (file)
@@ -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;
         }