Compartir a través de


ctrlKey property

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

 

Syntax

HRESULT value = object.get_ctrlKey(* p);

Property values

Type: VARIANT_BOOL

VARIANT_TRUE (true)

The Ctrl key is pressed.

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

See also

Reference

IDOMMouseEvent::altKey

IDOMMouseEvent::getModifierState

IDOMMouseEvent::metaKey

IDOMMouseEvent::shiftKey