Приложения для Windows
EN
Данное содержимое не доступно на вашем языке, используйте версию на английском языке.

shiftKey property

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

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

 

Syntax

JavaScript

p = object.shiftKey

 

Property values

Type: Boolean

true (true)

The Shift key is pressed.

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 location property.

See also

DragEvent
KeyboardEvent
MouseEvent
MouseWheelEvent
WheelEvent
Reference
altKey
ctrlKey
getModifierState
metaKey

 

 

Показ:
© 2016 Microsoft