Don't set focus explicitly in wxGenericListCtrl mouse handling code.
Just skip the event to allow the system to set the focus to the control itself. This is more consistent with the other controls and should result in correct behaviour everywhere automatically. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2300,7 +2300,10 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
|
||||
#endif // __WXMAC__
|
||||
|
||||
if ( event.LeftDown() )
|
||||
SetFocus();
|
||||
{
|
||||
// Ensure we skip the event to let the system set focus to this window.
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
// Pretend that the event happened in wxListCtrl itself.
|
||||
wxMouseEvent me(event);
|
||||
|
Reference in New Issue
Block a user