]> git.saurik.com Git - wxWidgets.git/commitdiff
Ensure the wxVListBox gets the focus when it is clicked upon
authorRobin Dunn <robin@alldunn.com>
Thu, 3 Feb 2005 22:41:08 +0000 (22:41 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 3 Feb 2005 22:41:08 +0000 (22:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/vlbox.cpp

index 2830f19c7b8c5b73829e991a05be1ef139766e43..b7175edf6c886d0bc97a05424828b113fecb5a12 100644 (file)
@@ -574,6 +574,8 @@ void wxVListBox::OnKeyDown(wxKeyEvent& event)
 
 void wxVListBox::OnLeftDown(wxMouseEvent& event)
 {
+    SetFocus();
+    
     int item = HitTest(event.GetPosition());
 
     if ( item != wxNOT_FOUND )