Back to Devexpress

KeyboardEventArgs Class

aspnetcore-js-devexpress-dot-richedit-9e01b84d.md

latest1.4 KB
Original Source

KeyboardEventArgs Class

Contains data for the KeyDown and KeyUp events.

Declaration

ts
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

ts
handled: boolean

Property Value

TypeDescription
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

ts
htmlEvent: KeyboardEvent

Property Value

TypeDescription
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.).