Skip to main content

KeyboardHandlerServiceWrapper.OnKeyPress(PortableKeyPressEventArgs) Method

Override this method to handle the KeyPress event.

Namespace: DevExpress.Services

Assembly: DevExpress.Data.v24.2.dll

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