metaKey property
Gets a value that indicates whether the Meta/Control key is pressed.
![]() ![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Boolean
Standards information
- Document Object Model (DOM) Level 3 Events Specification, Section 5.2.6
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:

