Restore setting focus to generic wxDataViewCtrl on any mouse click.
The changes of r72632 resulted in focus not being given to wxDataViewMainWindow on right or middle click, restore this behaviour. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
22ab2de0ee
commit
a386b9c614
@ -3943,10 +3943,11 @@ void wxDataViewMainWindow::OnMouse( wxMouseEvent &event )
|
||||
return;
|
||||
}
|
||||
|
||||
if(event.LeftDown())
|
||||
if(event.ButtonDown())
|
||||
{
|
||||
// Not skipping this event would prevent the system from setting focus
|
||||
// to this window.
|
||||
// Not skipping button down events would prevent the system from
|
||||
// setting focus to this window as most (all?) of them do by default,
|
||||
// so skip it to enable default handling.
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user