X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5d2ebe49dfc05b38d83cace85f927baf04d3b6a1..4d854e1536ef0c520bfb8cd0e72d5d5e92026cf0:/src/generic/datavgen.cpp diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 89bc7ebfc0..565814cc7a 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -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(); }