It would be nice to have an option to disable the default context menu of the WebView component.
You can do this directly via HTML:
<body oncontextmenu="return false;">
<!-- web stuff here -->
</body>
1 Like
Or you can do this from C++ with:
evaluateJavascript("document.addEventListener('contextmenu', event => event.preventDefault());");
Like this you can wrap that in #if JUCE_DEBUG so that your debug builds have access to the inspector, but your release builds will have right click disabled.
4 Likes
I think it is noteworthy that this fix does not work for right clicks within iframes as they have their own document. So for that a seperate feature would still be helpfull

