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
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();
}