Registers a command that can be invoked via a keyboard shortcut, a menu item, an action, or directly.
Registering a command with an existing command identifier twice will cause an error.
A unique identifier for the command.
A command handler function.
Optional
The this context used when invoking the handler function.
this
Disposable which unregisters this command on disposal.
Registers a command that can be invoked via a keyboard shortcut, a menu item, an action, or directly.
Registering a command with an existing command identifier twice will cause an error.