Unit 'keyboard' Package
[Overview][Constants][Types][Procedures and functions][Index] [#rtl]

GetKeyEventChar

Get the character key part of a key event.

Declaration

Source position: keybrdh.inc line 261

function GetKeyEventChar(

  KeyEvent: TKeyEvent

):AnsiChar;

Description

GetKeyEventChar returns the charcode part of the given KeyEvent, if it contains a translated character key keycode. The charcode is simply the ascii code of the character key that was pressed.

It returns the null character if the key was not a character key, but e.g. a function key.

For an example, see GetKeyEvent

Errors

None.

See also

GetKeyEventUniCode

  

Return the Unicode key event.

GetKeyEventShiftState

  

Return the current state of the shift keys.

GetKeyEventFlags

  

Extract the flags from a key event.

GetKeyEventCode

  

Translate function key part of a key event code.

GetKeyEvent

  

Get the next raw key event, wait if needed.


Documentation generated on: Oct 27 2024