shiftKey property (event)
Sets or retrieves a Boolean value that indicates whether the left or right SHIFT key was down at the time when the event occurred.
In Internet Explorer, use the shiftLeft property to detect whether the left or right SHIFT key is down.
You can find the related objects in the Supported by objects section below.
The shiftKey property is read-only, except if the event object is created with the createEventObject method when it is read/write.
Boolean that sets or retrieves the state of the SHIFT key.
One of the following values:
|SHIFT key is up.|
|SHIFT key is down.|
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the shiftKey property:
Did you find this example helpful?
User Contributed Comments