Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js shortcut

document.addEventListener('keydown', (e) => {
  if (e.ctrlKey && String.fromCharCode(e.keyCode).toLowerCase() === 's') {
    e.preventDefault();
    e.stopPropagation();
    // Do some stuff...
  }
}, false);
 
PREVIOUS NEXT
Tagged: #js #shortcut
ADD COMMENT
Topic
Name
4+3 =