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>
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.
1 Like