changeset 1647:b2c26ed9031c

On Mac set button to 2 (right) when Control key is pressed and left clicking in button press events.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 07 Apr 2012 02:16:36 +0000
parents 8493f8888893
children 7a9b1189934a
files mac/dw.m
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Sat Apr 07 01:22:15 2012 +0000
+++ b/mac/dw.m	Sat Apr 07 02:16:36 2012 +0000
@@ -303,6 +303,10 @@
                     {
                         button = 3;
                     }
+                    else if([event modifierFlags] & NSControlKeyMask)
+                    {
+                        button = 2;
+                    }
                 }
 
                 return buttonfunc(object, (int)p.x, (int)p.y, button, handler->data);