From c7778877185da03bd0cf504302cca4b2a5220f5a Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 3 Feb 2005 22:41:08 +0000 Subject: [PATCH] Ensure the wxVListBox gets the focus when it is clicked upon git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/vlbox.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generic/vlbox.cpp b/src/generic/vlbox.cpp index 2830f19c7b..b7175edf6c 100644 --- a/src/generic/vlbox.cpp +++ b/src/generic/vlbox.cpp @@ -574,6 +574,8 @@ void wxVListBox::OnKeyDown(wxKeyEvent& event) void wxVListBox::OnLeftDown(wxMouseEvent& event) { + SetFocus(); + int item = HitTest(event.GetPosition()); if ( item != wxNOT_FOUND ) -- 2.45.2