|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
KeyPress Event (Shift Key Specifically) in Mozilla
Hey, im creating a photo gallery script in JavaScript and im trying to make it cross browser. Im also making it so you can use the keyboard to navigate photos. The trouble is, i cant get Mozilla to detect the Shift key at all. Im using:
if (e.modifiers & Event.SHIFT_MASK) { } To detect it, and its not working. Ive also tried: if (e.modifiers == 2) { } Any ideas? Thanks. |
|
#2
|
|||
|
|||
|
Try e.modifiers & Event.SHIFT_MASK == Event.SHIFT_MASK
Hadley |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > KeyPress Event (Shift Key Specifically) in Mozilla |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|