Table of Contents

Struct KeyBinding

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

Provides a collection of Command objects stored in KeyBindings. Carried as context in command invocations (see CommandContext).

public struct KeyBinding : ICommandBinding, IEquatable<KeyBinding>
Implements
Inherited Members

Constructors

KeyBinding(Command[], object?)

Initializes a new instance.

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

Initializes a new instance.

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

Initializes a new instance.

Properties

Commands

Gets or sets the commands this command binding will invoke.

Data

Arbitrary context that can be associated with this command binding.

Key

The Key that is bound to the Commands.

Source

Gets the View that registered the binding as a weak reference.

Target

The view the key binding is bound to.

Methods

Equals(object)
Equals(KeyBinding)
GetHashCode()
ToString()

Operators

operator ==(KeyBinding, KeyBinding)
operator !=(KeyBinding, KeyBinding)

See Also