8 points · by catskull · 10y ago · 20 comments
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?
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.
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).
Array.prototype.forEach.call(document.getElementsByTagName('img'), function(value) {
value.oncontextmenu = function() {
alert("Get off my lawn!");
}
});The internet used to suck a lot worse than it does now.
alert("hotlink protection!!1");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.