chickadee » 3viewer » make-keymap

(make-keymap [KEY1 PROC1 ... [DEFAULTHANDLER]])procedure

Creates and returns a keymap and fills it with the given key/keyhandler items. A key should be a character, a symbol indicating a special key or a list of the form ([alt] [control] [shift] CHAR)]]. A key-handler is a procedure that takes the key as its sole argument.

If DEFAULTHANDLER is given, it should be a procedure of one argument (the key value) that is invoked for all key-presses for which no item exists in the keymap. If the default-handler returns false, then any joined keymap (see below) will be tried.

Special keys are mapped to symbols like this:

F1 - F12f1 - f12
leftleft
upup
rightright
downdown
Page uppage-up
Page downpage-down
Homehome
Endend
Insertinsert