shiftKey
Collapse the table of content
Expand the table of content

shiftKey property

Gets a value that indicates whether the Shift key is pressed.

Document Object Model (DOM) Level 3 Events Specification, Section 5.2.6Internet Explorer 9

 

Syntax

HRESULT value = object.get_shiftKey(* p);

Property values

Type: VARIANT_BOOL

VARIANT_TRUE (true)

The Shift key is pressed.

VARIANT_FALSE (false)

The Shift key is not pressed.

Standards information

Remarks

To determine whether the left or right version of the Shift key is pressed, use the IDOMKeyboardEvent::location property.

See also

Reference
IDOMKeyboardEvent::altKey
IDOMKeyboardEvent::ctrlKey
IDOMKeyboardEvent::getModifierState
IDOMKeyboardEvent::metaKey

 

 

Show:
© 2016 Microsoft