KeyboardHandlerServiceWrapper.OnKeyPress(KeyPressEventArgs) Method
Override this method to handle a key press event.
Namespace: DevExpress.Services
Assembly: DevExpress.Data.v19.1.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
e | KeyPressEventArgs | A KeyPressEventArgs object specifying the character that is composed when the user presses a key. |
Remarks
A KeyPress event occurs when the user presses a key. The KeyDown event precedes each KeyPress event when the user presses a key. The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and KeyUp events.
The OnKeyPress method enables you to trap keys pressed when the control has focus.
Implements
See Also