1

I know we can capture key events with event.which, but for accessibility purposes we need to be able to navigate to a custom context click (right click) menu. Is there a way to register a context click, both for mac and windows?

Justin
  • 137
  • 2
  • 10
  • You're looking for the window.oncontextmenu event. This event triggers for me in chrome / windows on right click and keyboard context menu actions. – Bryan Feb 28 '19 at 22:04
  • 2
    Possible duplicate of [Is right click a Javascript event?](https://stackoverflow.com/questions/2405771/is-right-click-a-javascript-event) – Bryan Feb 28 '19 at 22:04
  • "for accessibility purposes we need to be able to navigate to a custom context click (right click) menu" sounds sketchy. Could you explain more, please? The expected result of a right click would be the user-agent's context menu. – Andy Mar 19 '19 at 19:24

0 Answers0