MouseEvent.shiftKey (Property)

A Boolean value that represents the state of the [shift] key.

Availability:

DOM level - 2
JavaScript - 1.5
Netscape - 6.0
Property/method value type:Boolean primitive
JavaScript syntax:NmyMouseEvent.shiftKey

When an event is being processed, you may want to know the state of the [shift] key on the keyboard.

This Boolean property returns true when the [shift] key is pressed and false when it is not.

This property reflects the state of the [shift] key at the instant when the event was triggered. The user may have released the key in the meantime so you should not assume that if the [shift] key was pressed earlier on that it is still pressed when the event handler is being executed.

See also:Event.shiftKey

Property attributes:

ReadOnly.