Disable the right mouse button menu bar
$ (' body '). Bind ("ContextMenu", function (event) {return
false;
});
Disable shortcut keys
$ ("body"). Bind ("KeyDown", function (e) {
e=window.event| | e;
Prevent the space bar from paging
if (event.keycode==32) {return
false;
}
Mask F5 Refresh key
if (event.keycode==116) {
e.keycode = 0;//ie needs to be set to KeyCode false return
false;
}
Shielding ALT + Direction key ←
//Shielding ALT + Direction key →
if ((Event.altkey) && ((event.keycode==37) | | (event.keycode==39)))
{
event.returnvalue=false;
return false;
}
Mask BACKSPACE Delete key
if (event.keycode==8) {return
false;
}
Shielded Ctrl+r
if ((Event.ctrlkey) && (event.keycode==82)) {
E.keycode = 0;
return false;
}
});
The above jquery disable shortcut keys such as disable F5 refresh disabled Right-click menu and so on simple implementation is small set to share all the content, hope to give you a reference, also hope that we support cloud habitat community.