Table of Contents

Method AddApp

Namespace
Terminal.Gui.Input
Assembly
Terminal.Gui.dll

AddApp(Key, View?, params Command[])

For Application-level HotKey Bindings (KeyBindings); Adds key will trigger the commands in commands on the View specified by target.

If the key is already bound to a different array of Commands it will be rebound commands.

public void AddApp(Key key, View? target, params Command[] commands)

Parameters

key Key

The key to check.

target View

For Application-level HotKey Bindings; the view the key binding is bound to.

commands Command[]

The command to invoked on the when key is pressed. When multiple commands are provided,they will be applied in sequence. The bound key will be consumed if any took effect.

See Also