Contents Up Previous Next

ASCII code table

This section lists the key codes which can be passed to on_key_press and which keys they represent:
 1..26     Ctrl+A .. Ctrl+Z
 8         Backspace (Ctrl+H is also Backspace)
 9         Tab (Ctrl+I is also Tab)
 13        Enter (Ctrl+M is also Enter)
 27        Escape
 32        Space
 48..57    '0' key .. '9' key
 65..90    'A' .. 'Z'  (letters are always passed as uppercase)
 359..368  F1 .. F10
 371       Home (numeric pad)
 372       Up arrow
 373       PgUp (numeric pad)
 375       Left arrow
 376       '5' (numeric pad)
 377       Right arrow
 379       End (numeric pad)
 380       Down arrow
 381       PgDn (numeric pad)
 433..434  F11 .. F12
Extra codes, which only work with IsKeyPressed (ie. on_key_press is never called with these codes):
 403       Left shift
 404       Right shift
 405       Left ctrl
 406       Right ctrl
 407       Alt

Browser Based Help. Published by chm2web software.
1