Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormatOption ¶
type KeyChord ¶
type KeyChord struct {
Modifiers []keycode.KeyModifier
KeyCode keycode.KeyCode
}
func NewKeyChord ¶
func NewKeyChord(keychord string, opt ParseOption) (KeyChord, error)
NewKeyChord parse takes a vscode-like keybind string like "ctrl+shift+f" or "ctrl-shift-f" and converts it into a structured KeyChord.
func (KeyChord) String ¶
func (kc KeyChord) String(opt FormatOption) string
String returns the string representation of the key chord. like "ctrl+a"
type ParseOption ¶
Click to show internal directories.
Click to hide internal directories.