Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

metaKey property

Gets a value that indicates whether the Meta/Control key is pressed.

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

 

Syntax

JavaScript

p = object.metaKey

 

Property values

Type: Boolean

true (true)

The Meta/Control key is pressed.

false (false)

The Meta/Control key is not pressed.

Standards information

Remarks

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

See also

DragEvent
KeyboardEvent
MouseEvent
MouseWheelEvent
WheelEvent
Reference
altKey
ctrlKey
getModifierState
shiftKey

 

 

Show:
© 2017 Microsoft