HOW TO DETECT A CTRL-CLICK (CONTEXT MENU) REQUEST IN THE MOUSEDOWN EVENT

naomi burke

Total Post:28

Points:196
Posted by  naomi burke
 718  View(s)
Ratings:
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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!