For those looking for a pure-JS solution to this problem, the following also works:
document.addEventListener("contextmenu", function (e) { e.preventDefault() e.stopPropagation() console.log("Stopped") return false; });