metaKey property
Gets a value that indicates whether the Meta/Control key is pressed.
![]() ![]() |
Syntax
HRESULT value = object.get_metaKey(* p);
Property values
Type: VARIANT_BOOL
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 IDOMKeyboardEvent::location property.
See also
- Reference
- IDOMMouseEvent::altKey
- IDOMMouseEvent::ctrlKey
- IDOMMouseEvent::getModifierState
- IDOMMouseEvent::shiftKey
Show:

