X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/687706f5e722ac8a39172024f794ae0ffbd190e2..432968bf3d888547cc88478199cdd9da37109be8:/src/generic/vlbox.cpp 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 )