Ensure that the listctrl takes the focus on left-click

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-12-01 23:51:49 +00:00
parent bb29edfaa2
commit 8d4b048e27

View 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;