On keypress

Started by Who?, Sun 11/05/2003 14:39:33

Previous topic - Next topic

Who?

Does anyone know where I can get a list of all the key codes or could someone post them to this topic.

scotch

Why don't people read the manual >:(

Please always check there first, a lot of newbie keep asking questions like this in the forum.. after a while you'll probably stop being helped.  But for now (TAKEN FROM THE HELP FILE)

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
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

It's actually quicker to search the help file for key codes than to post here you know..

SMF spam blocked by CleanTalk