Appendix D
© 1995, 1996, 1997 Gregg M. Townsend, Ralph E. Griswold, and Clinton
L. Jeffery
Keyboard Symbols
Pressing a key on the keyboard produces an Icon event unless the key is
a modifier key such as the shift key. Releasing a key does not produce an
event.
A key that represents a member of the character set, including traditional
actions such as return and backspace, produces a string containing a single
character. The control and shift modifiers can affect the particular character
produced: For example, pressing control-H produces "\b"
(the backspace character).
defined symbol value key
Key_PrSc 65377 print screen
Key_ScrollLock 65300 scroll lock
Key_Pause 65299 pause
Key_Insert 65379 insert
Key_Home 65360 home
Key_PgUp 65365 page up
Key_End 65367 end
Key_PgDn 65366 page down
Key_Left 65361 arrow left
Key_Up 65362 arrow up
Key_Right 65363 arrow right
Key_Down 65364 arrow down
Key_F1 65470 function key F1
Key_F2 65471 function key F2
Key_F3 65472 function key F3
Key_F4 65473 function key F4
Key_F5 65474 function key F5
Key_F6 65475 function key F6
Key_F7 65476 function key F7
Key_F8 65477 function key F8
Key_F9 65478 function key F9
Key_F10 65479 function key F10
Key_F11 65480 function key F11
Key_F12 65481 function key F12
Other keys, such as function and arrow keys, produce integer-valued events.
These values may be referenced symbolically by including the definitions
contained in the library file keysyms.icn. The following table
lists the values of some of the most commonly used keys.
Back to Contents