Skip to content Skip to sidebar Skip to footer

Arrow Key Pressed While Shift Key Is Held Down

I have a Sudoku puzzle and I want to make it so the user can press the shift key and hold it down while they use the arrow keys to move up and down between cells. The cells that ar

Solution 1:

Does this handle what you're after?

if (event.shiftKey && event.which == 38) { 
  //shift was down when up arrow pressed
}

JS Fiddle: http://jsfiddle.net/stroz/hrQEX/3/


Post a Comment for "Arrow Key Pressed While Shift Key Is Held Down"