JSFiddle - React, Tailwind, and code Playground
JavaScript
$(document).ready(function(){
$(document).bind("contextmenu",function(e){
alert('Context Menu event has fired!');
return false;
});
var shift = false;
jQuery(document).on("keydown", function(event) {
if (event.which === 16) {
shift = true;
}
});
jQuery(document).mousedown(function(e) {
if (e.which === 3 && shift === true) {
console.log("both action are triggered");
return false;
}
});
});