Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

KeyboardEventArgs Class

Contains data for the KeyDown and KeyUp events.

#Declaration

TypeScript
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

TypeScript
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

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