Home > DeveloperSection > Forums > How to detect a ctrl-click (context menu) request in the mouseDown event
naomi burke
naomi burke

Total Post:28

Points:196
Posted on    September-03-2015 11:56 PM

 iPhone iPhone  Ios  Objective C 
Ratings:


 0 Reply(s)
 454  View(s)
Rate this:

In my cross-platform architecture, I would like to act on a context menu click (right button click) during a mouse click event. In Cocoa, can you detect that the user either Ctrl-Clicked or double-tapped on touchpad (right-click equivalent) DURING the mouseDown event?

I am aware of NSView's menuForEvent but do not wish to handle it here.



Don't want to miss updates? Please click the below button!

Follow MindStick