Ask HN: Why don't web apps make use of right click?
I only recently found out about "oncontextmenu", which is a javascript event that fires when a user right clicks a web page. Using that event, you can prevent the OS/browser right click menu, and even create your own menu.
So my question is: why don't more web apps make use of that? A right click is an operation that's instilled in many (all?) computer users, why not leverage that instead of having complicated dropdown options menus?
(
20 comments
| 8 points
| on HN
)
I think we're at this point, especially with mobile getting analogue touch sensitivity via "Force Touch" on iOS.
Of course, to prevent overzealous developers, the title strings must not share the same name one of the existing static items. Let's learn from letting our less wise colleagues alter scroll behaviour.
A proportion of people are designing mobile first, desktop displays are second priority.
Whenever I visit a site with right-click events, I think back to the early days of the web, when webmasters tried to prevent you from viewing their source by capturing right-clicks (then you just had to use the menu bar).
The internet used to suck a lot worse than it does now.
1.https://developer.chrome.com/extensions/contextMenus 2.https://developer.apple.com/library/content/documentation/To... 3.https://msdn.microsoft.com/en-us/library/aa753589(v=vs.85).a... 4.https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Ad...
Of course our app is designed to make every single widget or thing user modifiable and configurable.