[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Handler for a character entered by the user.
Source position: controls.pp line 2192
public property TWinControl.OnKeyPress : TKeyPressEvent |
This handler only receives characters, not control or other special keycodes. Control keys should be handled by an OnKeyDown handler instead.
The handler can convert the character into a different one.
Remark: | We recommend you to use OnUTF8KeyPress to prevent data loss. Characters are converted from UTF8 to the system encoding in OnKeyPressEvent, with possible loss of characters outside the Ansi codepage. |
|
Handler for keyboard key pressed. |
|
|
Handler for a character entered by the user. |
lazarus-ccr.sourceforge.net |