]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/toplevel.cpp
compilation fix (part of patch 810484)
[wxWidgets.git] / 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);