---
title: "How to detect a ctrl-click (context menu) request in the mouseDown event"  
description: "How to detect a ctrl-click (context menu) request in the mouseDown event"  
author: "Anonymous User"  
published: 2015-09-03  
updated: 2015-09-03  
canonical: https://www.mindstick.com/forum/33438/how-to-detect-a-ctrl-click-context-menu-request-in-the-mousedown-event  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# How to detect a ctrl-click (context menu) request in the mouseDown event

In my cross-[platform](https://www.mindstick.com/articles/13080/wikipedia-the-most-powerful-advertising-platform-of-the-digital-age) [architecture](https://www.mindstick.com/articles/249193/top-5-reasons-to-pursue-architecture), I would like to act on a [context](https://www.mindstick.com/forum/23245/what-is-context-in-android) menu click ([right](https://www.mindstick.com/articles/12766/check-whether-you-are-doing-digital-transformation-right-or-not) [button click](https://www.mindstick.com/forum/790/form-gets-submiited-twice-on-button-click)) during a mouse [click event](https://www.mindstick.com/forum/424/how-to-call-form_paint-event-on-button-click-event). In Cocoa, can you [detect](https://www.mindstick.com/forum/1906/detect-when-cd-drive-was-closed) 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](https://www.mindstick.com/articles/311004/suede-skillet-handle-cover) it here.


---

Original Source: https://www.mindstick.com/forum/33438/how-to-detect-a-ctrl-click-context-menu-request-in-the-mousedown-event

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
