Export (0) Print
Expand All

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

HRESULT value = object.get_metaKey(* p);

Property values

Type: VARIANT_BOOL

VARIANT_TRUE (true)

The Meta/Control key is pressed.

VARIANT_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 IDOMKeyboardEvent::location property.

See also

Reference
IDOMKeyboardEvent::altKey
IDOMKeyboardEvent::ctrlKey
IDOMKeyboardEvent::getModifierState
IDOMKeyboardEvent::shiftKey

 

 

Community Additions

ADD
Show:
© 2014 Microsoft