&cbind, &kbind, &nkind - Command/key binding operators
&kbind n command
&cbind returns the command bound to the given key sequence, &kbind can be abbreviated to &kbi. If the key is not bound then &kbind returns the string "ERROR".
&nbind returns the numerical argument associated with the given key binding, &nbind can be abbreviated to &nbi. If the key is not bound then &nbind returns the string "ERROR", if the binding has no argument then an empty string ("") is returned.
&kbind returns a key sequence bound to the given command with the given numerical argument n. If no binding can be found then &kbind returns an empty string ("").
The following example waits for the user to press a key, then prints what command the key is bound to.
ml-write "Enter key: " set-variable #l0 @cgk ml-write &spr "%s is bound to %s" #l0 &cbin #l0
In March 2001 &kbind was renamed &ckind and a new &nkind and &kbind added.
Copyright (c) 1998-2006 JASSPA
Last Modified: 2002/01/11
Generated On: 2006/10/07