Skip to main content

KeyboardHandlerServiceWrapper.OnKeyDown(PortableKeyEventArgs) Method

Override this method to handle the KeyDown event.

Namespace: DevExpress.Services

Assembly: DevExpress.Data.v24.1.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.

See Also