Documentation ¶
Index ¶
- type KeyAction
- type KeyActions
- func (k *KeyActions) Add(description string, key tcell.Key, char rune, action func() bool) *KeyActions
- func (k *KeyActions) GetAction(key tcell.Key, char rune) func() bool
- func (k *KeyActions) GetAll() []KeyAction
- func (k *KeyActions) OnUpdate(f func())
- func (k *KeyActions) Remove(key tcell.Key, char rune) *KeyActions
- func (k *KeyActions) Replace(key tcell.Key, char rune, action func() bool) *KeyActions
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 }
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
Click to show internal directories.
Click to hide internal directories.