The type of key (input) accepted by the map.
Adds the default binding for all built-in commands. To reset the map to its initial state, first call clear.
Clears the map of all input value bindings.
Returns whether the map contains a binding for the specified input value.
The input value.
Returns true if the input value is mapped to a command or custom action.
Returns the default input value that maps to the specified command, or null
if the command has no default. For example, in an abbreviation map, this would return the default abbreviation for the command. Throws an Error if the command name is invalid.
The name of the built-in command to look up.
An input string that (unless replaced or removed) maps to the specified command, or null
if none.
Returns an array of the keys of the input map.
Input values that map to a command or action.
Binds the specified input value to a custom Action instance. When the view receives a matching input value from the user, it will apply the action if possible.
The input value.
The action to perform when the user produces the gesture.
Binds the specified input value to the command with the specified name. When the view receives a matching input value from the user, it will apply the command if possible. Throws an Error if the string is not a valid command name.
The input value.
Clears the binding, if any, for the specified input value. Mapping an input to null has the same effect.
The input value.
Removes all bindings for inputs that map to the specified command. This will block access to the command through the input map unless a new mapping is created later. In some cases, however, it may not completely block all access to the effect of the command. For example, to completely block a command's effect in the abbreviation map, it may be neccessary to also remove one or more of the built-in mapping functions such as .magicPowers
.
The command to remove from the input map.
This API is still under development and is subject to change. Copyright © Math I Can Do Solutions Incorporated and/or its licensors.
A map that describes bindings from possible input values to editing actions. Usually, the actions are editor commands, but custom actions can be added by subclassing Action and passing the new action to put. The nature of a map's input values is determined by the kind of map. For example, a gestureMap binds keystrokes to actions, while an abbreviationMap binds short letter strings to actions.