Answers for "capture keystrokes in javascript"

0

capture keystrokes in javascript

window.onload = function() {
   document.getElementsByTagName('body')[0].onkeyup = function(e) { 
      var ev = e || event;
      if(ev.keyCode == 70) {//&& ev.ctrlKey) {
         //do something...
      }
   }
};
Posted by: Guest on October-19-2021

Code answers related to "capture keystrokes in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language