Users Pricing

forum

Home Forums How to detect a ctrl-click (context menu) request in the mouseDown event – MindStick

How to detect a ctrl-click (context menu) request in the mouseDown event

Anonymous User 2097 03 Sep 2015

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.


0 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md