]> git.saurik.com Git - wxWidgets.git/commitdiff
Restore setting focus to generic wxDataViewCtrl on any mouse click.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 15 Nov 2012 18:48:55 +0000 (18:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 15 Nov 2012 18:48:55 +0000 (18:48 +0000)
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

src/generic/datavgen.cpp

index 89bc7ebfc0142dd6ba874e26bd0e52f70d83a0b0..565814cc7a93d9254691a0c5a4eb854b525e266a 100644 (file)
@@ -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();
     }