Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

altKey property

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

See also

Reference
IDOMMouseEvent::ctrlKey
IDOMMouseEvent::getModifierState
IDOMMouseEvent::metaKey
IDOMMouseEvent::shiftKey

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.