js onkeydown ctrl

 

 

 

 

If the key pressed are CtrlS, a function will be triggered. First example, without JQuery: var isCtrl false document.onkeyupfunction(e) if(e.which 17) isCtrlfalse document. onkeydownfunction Note that the onKeyPress event is not raised for all keys, more specifically for ALT, CTRL, SHIFT, ESC, etc in all browsers. It is wise to use the onKeyDown event for all practical purposes. Any URLs added here will be added as Copyright © 2018.