Checks whether the command can be executed at the present time.
Name of the command
OptionalthrowOnNonexisting: booleanWhether to throw an error if the command with the specified name does not exist.
If set to false and the command doesn't exist, the method will just return false.
Executes the command with the given name
Name of the command
OptionalthrowOnNonexisting: falseWhether to throw an error if the command with the specified name does not exist.
If set to false and the command doesn't exist, the method will just return undefined.
Executes the command with the given name
Name of the command
Whether to throw an error if the command with the specified name does not exist.
If set to false and the command doesn't exist, the method will just return undefined.
InternalInternalWhether the command with the given name exists
Name of the command
Register a new command
Name of the command
Command definition
Register a new hotkey combination for the command.
Combination of keys. When all keys in the given array are pressed at the same time, the command will be executed.
Name of the command that should be executed when the keys are pressed.
Optionaloptions: HotkeyRegistrationOptionsOptions for the hotkey registration.
Currently pressed keys