EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

ctrlKey property

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

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

Syntax

JavaScript

p = object.ctrlKey

Property values

Type: Boolean

true (true)

The Ctrl key is pressed.

false (false)

The Ctrl key is not pressed.

Standards information

Remarks

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

See also

DragEvent
event
KeyboardEvent
MouseEvent
MouseWheelEvent
WheelEvent
Reference
altKey
getModifierState
metaKey
shiftKey

 

 

표시:
© 2014 Microsoft. All rights reserved.