KeyboardHandlerServiceWrapper.OnKeyDown(PortableKeyEventArgs) Method
Override this method to handle the KeyDown event.
Namespace: DevExpress.Services
Assembly: DevExpress.Data.v20.2.dll
NuGet Packages: DevExpress.Data, DevExpress.WindowsDesktop.Data
Declaration
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.
Related GitHub Examples
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.