add-function in keymap%
Names a new function to handle events, called in response to
handle-key-event,
handle-key-event, or
call-function. The return value is of the procedure is ignored.
If there was already a function mapped to this name, it will be replaced with the given function.
When the function is called, it gets the arguments that were passed to
handle-key-event,
handle-mouse-event, or
call-function. For keymaps associated with an editor, this is normally the target
editor.
(-> voidsenda-keymapadd-functionnamefunc)
name: string
func: procedure of two arguments: an arbitrary value and anevent%object