code_junkie

Can you detect a ctrl-click (context menu) request in the mouseDown event?

Nov 11th, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. - (void)mouseDown:(NSEvent *)event;
  2. {
  3. if (event.modifierFlags & NSControlKeyMask)
  4. return [self rightMouseDown:event];
  5.  
  6. ...
  7. }
Add Comment
Please, Sign In to add comment