Table of Contents

Struct KeyBinding

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

Provides a collection of Command objects stored in KeyBindings.

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

Constructors

KeyBinding(Command[], object?)

Initializes a new instance.

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

Initializes a new instance.

Properties

Commands

The commands this key binding will invoke.

Data

Arbitrary context that can be associated with this input binding.

Key

The Key that is bound to the Commands.

Source

Gets or sets the View that is the origin of this binding.

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