class

Term2::Components::Key::Binding

Inherits Reference < Object

Binding describes a set of keybindings and their associated help text

Constructors

new(keys : Array(String), help : Help, disabled : Bool = false)
Source
new(keys : Array(String), help_key : String, help_desc : String, disabled : Bool = false)

Create a new binding with keys and help

Source
new(keys : Array(String))
Source

Instance methods

disabled=(disabled : Bool)
Source
disabled?
Source
enabled=(v : Bool) : Bool

Set the enabled state explicitly.

Source
enabled?

Check if the binding is enabled

Source
help
Source
help_desc
Source
help_key
Source
keys
Source
matches?(msg : Term2::KeyMsg) : Bool

Check if the given message matches this binding

Source
set_enabled(v : Bool) : Nil
Source
unbind
Source