Table of Contents

Constructor KeyBinding

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

KeyBinding(Command[], KeyBindingScope, object?)

Initializes a new instance.

public KeyBinding(Command[] commands, KeyBindingScope scope, object? context = null)

Parameters

commands Command[]

The commands this key binding will invoke.

scope KeyBindingScope

The scope of the Commands.

context object

Arbitrary context that can be associated with this key binding.

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

Initializes a new instance.

public KeyBinding(Command[] commands, KeyBindingScope scope, View? boundView, object? context = null)

Parameters

commands Command[]

The commands this key binding will invoke.

scope KeyBindingScope

The scope of the Commands.

boundView View

The view the key binding is bound to.

context object

Arbitrary context that can be associated with this key binding.