9.19 keymap%
A 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-key-event or
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%)->keymap%objectCreates an empty keymap.
Methods
add-function
break-sequence
call-function
chain-to-keymap
get-double-click-interval
handle-key-event
handle-mouse-event
map-function
remove-chained-keymap
remove-grab-key-function
remove-grab-mouse-function
set-break-sequence-callback
set-double-click-interval
set-grab-key-function
set-grab-mouse-function