shiftLeft property (event)
Sets or retrieves a Boolean value that indicates whether the left SHIFT key was down at the time when the event occurred.
If it is not necessary to know which SHIFT key was pressed, use the cross-browser shiftKey property.
Note that Internet Explorer from version 9 started to support different event objects similarly to Firefox, Opera, Google Chrome and Safari. The event object passed to an event handler and the event object referred to by the window.event property are different in Internet Explorer from version 9 (except if the event handler is registered with the attachEvent method). The shiftLeft property is only supported by the window.event object.
You can find the related objects in the Supported by objects section below.
The shiftLeft 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 left SHIFT key.
One of the following values:
|Left SHIFT key is up.|
|Left SHIFT key is down.|
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the shiftLeft property:
Did you find this example helpful?
Supported by objects:
User Contributed Comments