keybind

package
v0.0.0-...-0583f0a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Matches

func Matches(event *tcell.EventKey, keybinds ...Keybind) bool

Types

type Help

type Help struct {
	Key  string
	Desc string
}

type Keybind

type Keybind struct {
	// contains filtered or unexported fields
}

func NewKeybind

func NewKeybind(options ...Option) Keybind

func (Keybind) Help

func (k Keybind) Help() Help

func (Keybind) Keys

func (k Keybind) Keys() []string

func (*Keybind) SetHelp

func (k *Keybind) SetHelp(key, desc string)

func (*Keybind) SetKeys

func (k *Keybind) SetKeys(keys ...string)

type Option

type Option func(*Keybind)

func WithHelp

func WithHelp(key, desc string) Option

func WithKeys

func WithKeys(keys ...string) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL