I did two small experiments today, blocking the keyboard from working and blocking the right mouse button from working
Experiment 1, shielded keyboard is not available
There are 3 keyboard events
a. keydown: Triggered when a key on the keyboard is pressed. If a key is held down, it will continue to trigger
b. keypress: Triggered when a key is pressed and a character is generated, that is, function keys such as Shift, Alt, Ctrl, etc. are ignored
c, keyup: triggered when a key is released
function block(oEvent) {
if (window.event) {