]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for #1106519
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 1 Apr 2005 11:55:56 +0000 (11:55 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 1 Apr 2005 11:55:56 +0000 (11:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp

index 32b4831f14d1dbdb2b47b6b4d1e1a0fa7b3f6e2f..b8211339a2a826ca66a0c8eea198a56759c22dbd 100644 (file)
@@ -308,6 +308,10 @@ static void SetupMouseEvent( wxMouseEvent &wxevent , wxMacCarbonEvent &cEvent )
         button = kEventMouseButtonSecondary ;
     }
     
+    // otherwise we report double clicks by connecting a left click with a ctrl-left click
+    if ( clickCount > 1 && button != lastButton )
+        clickCount = 1 ;
+        
     // we must make sure that our synthetic 'right' button corresponds in
     // mouse down, moved and mouse up, and does not deliver a right down and left up