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:
@@ -2964,6 +2964,9 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
|
|||||||
m_textctrlWrapper->AcceptChangesAndFinish();
|
m_textctrlWrapper->AcceptChangesAndFinish();
|
||||||
#endif // __WXMAC__
|
#endif // __WXMAC__
|
||||||
|
|
||||||
|
if ( event.LeftDown() )
|
||||||
|
SetFocus();
|
||||||
|
|
||||||
event.SetEventObject( GetParent() );
|
event.SetEventObject( GetParent() );
|
||||||
if ( GetParent()->GetEventHandler()->ProcessEvent( event) )
|
if ( GetParent()->GetEventHandler()->ProcessEvent( event) )
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user