]> git.saurik.com Git - wxWidgets.git/commitdiff
Ensure that the listctrl takes the focus on left-click
authorRobin Dunn <robin@alldunn.com>
Fri, 1 Dec 2006 23:51:49 +0000 (23:51 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 1 Dec 2006 23:51:49 +0000 (23:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 0b7905dcf39e0f5245a4ac89ebde317bd841553d..d96d2cbff239390e70c53ef3d38a24d4e8f17bd1 100644 (file)
@@ -2964,6 +2964,9 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
         m_textctrlWrapper->AcceptChangesAndFinish();
 #endif // __WXMAC__
 
+    if ( event.LeftDown() )
+        SetFocus();
+    
     event.SetEventObject( GetParent() );
     if ( GetParent()->GetEventHandler()->ProcessEvent( event) )
         return;