keyactions

package
v0.0.0-...-8cff2e0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyAction

type KeyAction struct {
	Description string
	// contains filtered or unexported fields
}

func (KeyAction) Key

func (k KeyAction) Key() string

type KeyActions

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

func NewKeyActions

func NewKeyActions(app *tview.Application) *KeyActions

func (*KeyActions) Add

func (k *KeyActions) Add(description string, key tcell.Key, char rune, action func() bool) *KeyActions

func (*KeyActions) GetAction

func (k *KeyActions) GetAction(key tcell.Key, char rune) func() bool

func (*KeyActions) GetAll

func (k *KeyActions) GetAll() []KeyAction

func (*KeyActions) OnUpdate

func (k *KeyActions) OnUpdate(f func())

func (*KeyActions) Remove

func (k *KeyActions) Remove(key tcell.Key, char rune) *KeyActions

func (*KeyActions) Replace

func (k *KeyActions) Replace(key tcell.Key, char rune, action func() bool) *KeyActions

Jump to

Keyboard shortcuts

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