Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareKey ¶
func CompareKey(a, b *tcell.EventKey) bool
CompareKey compares two EventKey instances.
Types ¶
type KeySequence ¶
type KeySequence []*tcell.EventKey
KeySequence is an ordered sequence of keyboard events.
func (KeySequence) String ¶
func (seq KeySequence) String() string
Format reverses a parsed key sequence into its string representation.
type Parser ¶
Parser is a key sequence parser. Key sequences consists of one or more keyboard input events. Special keys are defined by using angle brackets and a hyphen, such as <C-a> for Ctrl+A, or <C-S-M-x> for Ctrl+Shift+Meta+X.
func (*Parser) ParseKeySequence ¶
func (p *Parser) ParseKeySequence() (KeySequence, error)
ParseKeySequence parses the next key sequence, which is a combination of literal keys.
func (*Parser) ParseSpecial ¶
Parse a special key name, such as <space> or <C-M-a>.
Click to show internal directories.
Click to hide internal directories.