keymap% object is used by
editor<%> objects to
map keyboard and mouse sequences to arbitrary functions in an
extensible way. Keymaps can be used without editors, as well. A
keymap% object contains
a mapping from function names to event-handling procedures; and
a mapping from key and mouse sequences to function names .
A handler procedure in a keymap is invoked with a
key-event% object or a
mouse-event% object. It
is also given another value that depends on the context in which the
keymap is used (or, more specifically, the arguments to
handle-mouse-event). For keymaps associated with
editor<%> objects, the extra
parameter is generally the
editor<%> object that received the
keyboard or mouse event.
(make-object keymap%) ->
Creates an empty keymap.