KeyboardEventArgs Class

Contains data for the KeyDown and KeyUp events.

Declaration

export class KeyboardEventArgs extends EventArgs

Remarks

The KeyDown and KeyUp event handlers receive an argument of the KeyboardEventArgs type. The argument's properties provide information specific to these events.

Inheritance

EventArgs
KeyboardEventArgs

Properties

handled Property

Specifies whether the event is handled.

Declaration

handled: boolean

Property Value

Type Description
boolean

true, if the event is handled and further processing is not required; otherwise false.

htmlEvent Property

Gets a DHTML event object that relates to the processed event.

Declaration

htmlEvent: KeyboardEvent

Property Value

Type Description
KeyboardEvent

An object that maintains DHTML event-specific information.

Remarks

Use the htmlEvent property to access an object that contains DHTML event information (such as the HTML element in which the event occurred, the state of the keyboard keys, the location of the mouse, the state of the mouse buttons, etc.).