Find out whether or not the "SHIFT" key was pressed when a keyboard key is pressed:
The shiftKey property returns a Boolean value that indicates whether or not the "SHIFT" key was pressed when a key event was triggered.
Note: This property is read-only.
Property | |||||
---|---|---|---|---|---|
shiftKey | Yes | Yes | Yes | Yes | Yes |
Return Value: |
A Boolean, indicating whether the "SHIFT" key was pressed when the
key event occured.
Possible values:
|
---|---|
DOM Version: | DOM Level 2 Events |
HTML DOM reference: KeyboardEvent altKey Property
HTML DOM reference: KeyboardEvent ctrlKey Property
HTML DOM reference: KeyboardEvent metaKey Property