Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript override shortcut

onkeydown = function(e){
  if(e.ctrlKey && e.keyCode == ('S').charCodeAt(0)) {
    e.preventDefault();
    //your saving code
  }
}
 
PREVIOUS NEXT
Tagged: #javascript #override #shortcut
ADD COMMENT
Topic
Name
6+9 =