Sign in Join
FPDoc Onlineexperiment

TWinControl.OnUTF8KeyPress property

Member of TWinControlpublicIn unit Controls

Handler for a character entered by the user.

Declaration

pascal
property OnUTF8KeyPress: TUTF8KeyPressEvent read FOnUTF8KeyPress write FOnUTF8KeyPress;

Description

This handler receives characters codes only, not control or other special key codes. Control keys should be handled by an OnKeyDown handler instead. The event handler can also convert the character code into a different value.

While OnKeyPress receives only ANSI characters (with possible loss of characters outside the ANSI codepage), the OnUTF8KeyPress handler receives the UTF-8-encoded character code.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.