]> git.saurik.com Git - wxWidgets.git/commitdiff
Allow for Cmd-click on wxMac
authorRobin Dunn <robin@alldunn.com>
Tue, 29 Jun 2004 01:09:06 +0000 (01:09 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 29 Jun 2004 01:09:06 +0000 (01:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index ce1a34c6af226da5f6186b4c952df3f77bb069fb..0b552205c6293a9b28eae099422bf6d8c0f68a1f 100644 (file)
@@ -2981,8 +2981,13 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
         m_lineLastClicked = current;
 
         size_t oldCurrent = m_current;
-
-        if ( IsSingleSel() || !(event.ControlDown() || event.ShiftDown()) )
+        bool cmdModifierDown;
+#ifdef __WXMAC__
+        cmdModifierDown = event.MetaDown();
+#else
+        cmdModifierDown = event.ControlDown();
+#endif
+        if ( IsSingleSel() || !(cmdModifierDown || event.ShiftDown()) )
         {
             HighlightAll( false );
 
@@ -2992,7 +2997,7 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
         }
         else // multi sel & either ctrl or shift is down
         {
-            if (event.ControlDown())
+            if (cmdModifierDown)
             {
                 ChangeCurrent(current);