Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

266
Views
In Mac OS, when can a mouse right click not be identical to a control-click?

I'm building a custom context menu in vanilla Javascript for a web app. Using the current version of Safari (15.5) on Monterey 12.4, it works just as it should when the user right clicks (i.e. clicks using the right side of Magic Mouse), but does something different when the user holds down the control key and left clicks. The puzzle is that it seems that these two actions should be identical in their effect. (I think that one difference is that control-click generates a contextmenu event and a click event).

In contrast, Chrome (v101.0.4951.64) just produces a contextmenu event for a control-click, the same as for a right click.

I have 'Secondary click' ticked in System Preferences > Mouse > Point & Click.

Is this a bug in Safari, or something weird about my system? Any suggestions for how to work around this (just ignoring the extra click won't work, because left click on the element is used for another function)?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!