Skip to main content
A newer version of this page is available.
All docs
V18.2

KeyboardHandlerServiceWrapper.OnKeyDown(KeyEventArgs) Method

Override this method to handle a key down event.

Namespace: DevExpress.Services

Assembly: DevExpress.Data.v18.2.dll

Declaration

public virtual void OnKeyDown(
    KeyEventArgs e
)

Parameters

Name Type Description
e KeyEventArgs

A KeyEventArgs object containing information about the pressed key and key modifiers.

Remarks

A KeyDown event occurs when a key is pressed. The OnKeyDown method enables you to trap keys pressed when the control has focus.

The following code snippets (auto-collected from DevExpress Examples) contain references to the OnKeyDown(KeyEventArgs) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also