help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions] Reference for unit 'keyboard' (#rtl)

GetKeyEventChar

Get the character key part of a key event.

Declaration

Source position: keybrdh.inc line 166

function GetKeyEventChar(

  KeyEvent: TKeyEvent

):Char;

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.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505