Table of Contents

Constructor KeyBinding

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

KeyBinding(Command[], object?)

Initializes a new instance.

public KeyBinding(Command[] commands, object? data = null)

Parameters

commands Command[]

The commands this key binding will invoke.

data object

Arbitrary context that can be associated with this key binding.

KeyBinding(Command[], View?, object?)

Initializes a new instance.

public KeyBinding(Command[] commands, View? target, object? data = null)

Parameters

commands Command[]

The commands this key binding will invoke.

target View

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

data object

Arbitrary data that can be associated with this key binding.

KeyBinding(Command[], Key, View?, View?, object?)

Initializes a new instance.

public KeyBinding(Command[] commands, Key newKey, View? source = null, View? target = null, object? data = null)

Parameters

commands Command[]

The commands this key binding will invoke.

newKey Key

The key this binding is associated with.

source View

The view where this key binding was created.

target View

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

data object

Arbitrary data that can be associated with this key binding.

See Also