Mercurial > dwindows
comparison mac/dw.m @ 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 | 2b55465887e1 |
children | 7a9b1189934a |
comparison
equal
deleted
inserted
replaced
1646:8493f8888893 | 1647:b2c26ed9031c |
---|---|
300 button = 2; | 300 button = 2; |
301 } | 301 } |
302 else if(type == NSOtherMouseDown || type == NSOtherMouseUp) | 302 else if(type == NSOtherMouseDown || type == NSOtherMouseUp) |
303 { | 303 { |
304 button = 3; | 304 button = 3; |
305 } | |
306 else if([event modifierFlags] & NSControlKeyMask) | |
307 { | |
308 button = 2; | |
305 } | 309 } |
306 } | 310 } |
307 | 311 |
308 return buttonfunc(object, (int)p.x, (int)p.y, button, handler->data); | 312 return buttonfunc(object, (int)p.x, (int)p.y, button, handler->data); |
309 } | 313 } |