Name
modifiers — NN 4 IE n/a DOM n/a
Synopsis
Read-only
An integer that represents the keyboard modifier key(s) being held
down at the time the event fired. You can use the
&
operator with a series of
Event
object constants to find out whether a
particular modifier key was pressed. See Chapter 6.
Example
var altKeyPressed = evtObj.modifiers & Event.ALT_MASK
Value
Integer.
Default
0
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.