Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides properties and methods for keystroke events.
Members
The IDOMKeyboardEvent interface inherits from the IDispatch interface. IDOMKeyboardEvent also has these types of members:
- Methods
- Properties
Methods
The IDOMKeyboardEvent interface has these methods.
Method | Description |
---|---|
getModifierState | Queries the state of the specified modifier key. |
initKeyboardEvent | Initializes a new keyboard event that the IDocumentEvent::createEvent method created. |
Properties
The IDOMKeyboardEvent interface has these properties.
Property | Description |
---|---|
Gets a value that indicates whether the Alt key is pressed. |
|
Gets a character for a key that is pressed, if available. |
|
Gets the numeric key code of a key that is pressed. |
|
Gets a value that indicates whether the Ctrl key is pressed. |
|
Gets the key identifier of a key that is pressed. |
|
Gets the numeric key code of a key that is pressed. |
|
Gets the locale name for the event. |
|
Gets the ___location of a key on the keyboard or device. |
|
Gets a value that indicates whether the Meta/Control key is pressed. |
|
Gets a value that indicates whether a key was pressed and held. |
|
Gets a value that indicates whether the Shift key is pressed. |
|
Gets the numeric code of a key that is pressed. |
Requirements
Minimum supported client |
Windows Vista with SP1, Windows 7 |
Minimum supported server |
Windows Server 2008 R2 |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |