Demonstrates a technique for detecting the shift, ctrl and alt keys:
+ The keydown listener sets shiftMode to true when event.keyCode == 16.
+ The keyup listener sets shiftMode to false when event.keyCode == 16.
+ The keypress listener now knows if the shift key is currently pressed.
- Demo
- Enlarge
- Reload
- New window
- Sent (0)
- New


29/01/2007
0
Tell It



