CreateKeymap name(parent:Keymap...),...

Create a keymap. A keymap contains a set of keystrokes and commands active in a particular context. The name is an identifier or ByName() expression that names the new keymap; this keymap must not yet exist. If desired, one or more parent keymaps can be specified in parentheses; if the keymap should not have a parent keymap, the parentheses can be omitted.

The keymap can later be filled with keys using the Bind command.

A key is looked up first in the keymap itself. If it is not found there, it is searched for in the parents.

Keymaps have a separate namespace from variables, i.e. a keymap MyStuff and a variable MyStuff are not related in any way.

See Keymaps for a list of all predefined keymaps and related information.

Version Differences: PCC 1.x allows at most one parent keymap; PCC2 allows multiple parents.

Since: PCC 1.0.12, PCC2 1.99.9

See also: Bind, UseKeymap, Key, Elementary Commands