Answers for "check if shift and tab keys are pressed"

0

check if shift and tab keys are pressed

There's no "keycode", it's a separate property on the event object, like this:

if(event.shiftKey && event.keyCode == 9) { 
  //shift was down when tab was pressed
}
Posted by: Guest on September-04-2021

Code answers related to "check if shift and tab keys are pressed"

Browse Popular Code Answers by Language