Answers for "javascript check if two keys are pressed"

0

javascript check if two keys are pressed

// Ctrl + S save
document.onkeyup = function(e) {
  // 83 is the keycode for S
  if (e.ctrlKey && e.which == 83) {
    //Ctrl+S Pressed!
  }
};
Posted by: Guest on October-24-2021

Code answers related to "javascript check if two keys are pressed"

Code answers related to "Javascript"

Browse Popular Code Answers by Language