]> git.saurik.com Git - wxWidgets.git/commitdiff
support for true two button mouse under OSX
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 18 Sep 2003 12:37:53 +0000 (12:37 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 18 Sep 2003 12:37:53 +0000 (12:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp
src/mac/toplevel.cpp

index 67b1307bd7576753a8cfe89a8b00fa1996db5e5a..bf1864f056d4ef3aa2429e29000292738c583bbb 100644 (file)
@@ -264,6 +264,11 @@ pascal OSStatus MouseEventHandler( EventHandlerCallRef handler , EventRef event
     if ( button == 0 || GetEventKind( event ) == kEventMouseUp )
         modifiers += btnState ;
 
+       // temporary hack to support true two button mouse
+       if ( button == kEventMouseButtonSecondary )
+       {
+               modifiers |= controlKey ;
+       }
     WindowRef window ;
     short windowPart = ::FindWindow(point, &window);
 
index 67b1307bd7576753a8cfe89a8b00fa1996db5e5a..bf1864f056d4ef3aa2429e29000292738c583bbb 100644 (file)
@@ -264,6 +264,11 @@ pascal OSStatus MouseEventHandler( EventHandlerCallRef handler , EventRef event
     if ( button == 0 || GetEventKind( event ) == kEventMouseUp )
         modifiers += btnState ;
 
+       // temporary hack to support true two button mouse
+       if ( button == kEventMouseButtonSecondary )
+       {
+               modifiers |= controlKey ;
+       }
     WindowRef window ;
     short windowPart = ::FindWindow(point, &window);