Javascript Reference
Categories: event

javascript event modifiers

@Aug. 15, 2009, 12:11 p.m.
modifiers NN |4| IE n/a Chrome/Safari/DOM n/a

 

Read-only

Provides an integer that represents the keyboard modifier key(s) being held down at the time the Navigator 4-only event fired. You can use the & operator with a series of static Event object constants to find out whether a particular modifier key was pressed. 

 
Example
 
var altKeyPressed = evt.modifiers & Event.ALT_MASK;
 
Value

Integer.

 
Default

0


Powered by Linode.