Table of Contents

Method InvokeCommands

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

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 Key

The 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.

See for an overview of Terminal.Gui keyboard APIs.

protected bool? InvokeCommands(Key key, KeyBindingScope scope)

Parameters

key Key

The key event passed.

scope KeyBindingScope

The scope.

Returns

bool?

null if no command was invoked; input processing should continue. false if at least one command was invoked and was not handled (or cancelled); input processing should continue. true if at least one command was invoked and handled (or cancelled); input processing should stop.