altKey property

[This documentation is preliminary and is subject to change.]

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

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

Syntax

HRESULT value = object.get_altKey(VARIANT_BOOL* p);

Property values

Type: VARIANT_BOOL

VARIANT_TRUE (true)

The Alt key is pressed.

VARIANT_FALSE (false)

The Alt key is not pressed.

Standards information

Remarks

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

See also

Reference

ctrlKey

getModifierState

metaKey

shiftKey

 

 

Build date: 1/23/2012