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

which property

Gets the numeric code of a key that is pressed.

Internet Explorer 9

Syntax

HRESULT value = object.get_which(* p);

Property values

Type: long

The key code.

Standards information

There are no standards that apply here.

Remarks

The IDOMKeyboardEvent::which property is provided for compatibility only. The IDOMKeyboardEvent::keyCode property is more widely supported; however, we recommend the IDOMKeyboardEvent::key property for international keyboard layouts and improved accessibility.

See also

Reference
IDOMKeyboardEvent::char
IDOMKeyboardEvent::charCode
IDOMKeyboardEvent::key
IDOMKeyboardEvent::keyCode

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.