Table of Contents

Class KeyBindings

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Provides a collection of Keys bound to Commands.

public class KeyBindings : InputBindings<Key, KeyBinding>
Inheritance
KeyBindings
Inherited Members

Constructors

KeyBindings(View?)

Initializes a new instance bound to target.

Properties

Target

The view that the KeyBindings are bound to.

Methods

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

Adds a new key combination that 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.

IsValid(Key)

Tests whether eventArgs is valid or not.

See Also