Method InvokeCommands
InvokeCommands(Command[], Key?, KeyBinding?)
Invokes the specified commands.
public bool? InvokeCommands(Command[] commands, Key? key = null, KeyBinding? keyBinding = null)
Parameters
commands
Command[]The set of commands to invoke.
key
KeyThe key that caused the command to be invoked, if any. This will be passed as context with the command.
keyBinding
KeyBinding?The key binding that was bound to the key and caused the invocation, if any. This will be passed as context with the command.
Returns
- bool?
null if no command was found; input proessing should continue. false if at least one command was invoked and was not handled (or cancelled); input proessing should continue. true if at least one command was invoked the command was handled (or cancelled); input proessing should stop.
InvokeCommands(Key, KeyBindingScope)
Invokes the Commands bound to key
.
protected bool? InvokeCommands(Key key, KeyBindingScope scope)
Parameters
key
KeyThe key event passed.
scope
KeyBindingScopeThe scope.