module

Bubbles::Key

Class methods

matches?(k : T, *bindings : Binding) : Bool forall T

Matches checks if the given key matches the given bindings.

Source
new_binding(*opts : BindingOpt) : Binding

NewBinding returns a new keybinding from a set of BindingOpt options.

Source
with_disabled

WithDisabled initializes a disabled keybinding.

Source
with_help(key : String, desc : String) : BindingOpt

WithHelp initializes a keybinding with the given help text.

Source
with_keys

WithKeys initializes a keybinding with the given keystrokes.

Source
with_keys(*keys : String) : BindingOpt
Source

Nested types