| Did you know ... | Search Documentation: |
| Class variables |
The keys the user binds in a named table are the class variable
key_binding.<table>: a list of Key := Function, where
the function
none unbinds the key. For example:
key_binding.epilog: [ '\C-jq' := paste, \
'<f6>' := none \
]
Keys are written as for key_binding->function,
but with a single backslash: the Defaults file reads text between quotes
as is. A $ in the name of a table is written as _, e.g., key_binding.emacs_prolog
for the table
emacs$prolog. Class key_binding
declares these class variables for the tables it defines, such as editor
and text_item; for other tables key_binding<-user_bindings_variable
creates it when the table asks for it. These bindings are applied by key_binding->apply_preferences,
after those of the style, so they win. The key binding browser of
library keybinding.pl maintains them.