Skip to main content
A newer version of this page is available. .

KeyboardHandlerServiceWrapper.OnKeyPress(PortableKeyPressEventArgs) Method

Override this method to handle the KeyPress event.

Namespace: DevExpress.Services

Assembly: DevExpress.Data.v20.2.dll

NuGet Packages: DevExpress.Data, DevExpress.WindowsDesktop.Data

Declaration

public virtual void OnKeyPress(
    PortableKeyPressEventArgs e
)

Parameters

Name Type Description
e DevExpress.Portable.Input.PortableKeyPressEventArgs

This class is equivalent to System.Windows.Forms.KeyPressEventArgs and specifies the ASCII character corresponding to the key a user pressed.

Remarks

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

See Also