Skip to main content

KeyboardHandlerServiceWrapper.OnKeyDown(PortableKeyEventArgs) Method

Override this method to handle the KeyDown event.

Namespace: DevExpress.Services

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data

Declaration

public virtual void OnKeyDown(
    PortableKeyEventArgs e
)

Parameters

Name Type Description
e DevExpress.Portable.Input.PortableKeyEventArgs

This class is equivalent to System.Windows.Forms.KeyEventArgs and contains information about the pressed key and key modifiers.

Remarks

The KeyDown event occurs when a key is pressed while a control is focused. The KeyDown event precedes the KeyPress event, and the KeyUp event occurs when a user releases the key.

The following code snippets (auto-collected from DevExpress Examples) contain references to the OnKeyDown(PortableKeyEventArgs) 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