Keyboard freezing in web application using javascript
问题 How to freeze keyboard in a web application? i had tried freezing shortcuts,but it is only showing alert,which is defined in the freezing function. But the freeze operation is not working function disableCtrlKeyCombination(e) { //list all CTRL + key combinations you want to disable var forbiddenKeys = new Array('a', 'n', 'c', 'x', 'v', 'j'); var key; var isCtrl; if(window.event) { key = window.event.keyCode; //IE if(window.event.ctrlKey) isCtrl = true; else isCtrl = false; } else { key = e