Sign in Join
FPDoc Onlineexperiment

TranslateKeyEvent function

In unit keyboard

Translate raw event to ascii key event.

Declaration

pascal
function TranslateKeyEvent(KeyEvent: TKeyEvent): TKeyEvent

Description

TranslateKeyEvent performs ASCII translation of the KeyEvent. It translates a physical key to a function key if the key is a function key, and translates the physical key to the ordinal of the ascii character if there is an equivalent character key.

For an example, see GetKeyEvent

Errors

None.

See also

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