0

I want to test that shift key and tab pressed together takes the user back to the previous text field. I can’t figure out how to trigger shift key and tab together in the test. Can anyone help?

1 Answers1

0

Look at this answer

if(event.shiftKey && event.keyCode == 9) { 
  //shift was down when tab was pressed
}
Charlie
  • 21,138
  • 10
  • 54
  • 85