Documentation ¶
Index ¶
- type Binding
- type Sequencer
- func (s *Sequencer) AddBind(binding Binding) error
- func (s *Sequencer) KeyInput(ev *tcell.EventKey, contexts []string) bool
- func (s *Sequencer) List() list.List
- func (s *Sequencer) Match(contexts []string) *Binding
- func (s *Sequencer) RemoveBind(context string, seq keysequence.KeySequence) error
- func (s *Sequencer) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binding ¶
type Binding struct { Command string Context string Sequence keysequence.KeySequence }
Binding holds a parsed, user provided key sequence.
type Sequencer ¶
type Sequencer struct {
// contains filtered or unexported fields
}
Sequencer holds all the keyboard bindings and their action mappings.
func (*Sequencer) KeyInput ¶
KeyInput feeds a keypress to the sequencer. Returns true if there is one match or more, or false if there is no match.
func (*Sequencer) RemoveBind ¶
func (s *Sequencer) RemoveBind(context string, seq keysequence.KeySequence) error
RemoveBind removes a key mapping.
Click to show internal directories.
Click to hide internal directories.