Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binding ¶
type Binding struct { Command 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) AddBind ¶
func (s *Sequencer) AddBind(seq keysequence.KeySequence, command string) error
AddBind creates a new key mapping.
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(seq keysequence.KeySequence) error
RemoveBind removes a key mapping.
Click to show internal directories.
Click to hide internal directories.