Documentation
¶
Index ¶
- func CanonicalID(key tcell.Key, r rune, mod tcell.ModMask) string
- func IsReserved(key tcell.Key, r rune, mod tcell.ModMask) bool
- func NormalizeEvent(ev *tcell.EventKey) (tcell.Key, rune, tcell.ModMask)
- func Parse(spec string) (tcell.Key, rune, tcell.ModMask, error)
- func ToChar(k tcell.Key) (rune, bool)
- func Validate(spec string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalID ¶
CanonicalID returns a unique identifier for a parsed key combination.
func IsReserved ¶
IsReserved reports whether the given key combination is reserved for navigation and should not be reassigned. Only unmodified keys are checked.
func NormalizeEvent ¶
NormalizeEvent converts an EventKey into a canonical (key,rune,mod) triple. Ctrl+A style events are normalized to KeyRune with the corresponding rune.
func Parse ¶
Parse converts a key specification like "Ctrl+A" or "F5" to tcell values. It returns the key, optional rune, and modifier mask.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.