Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Defaulter ¶
type Defaulter interface {
DefaultEvent() string
}
Defaulter is a type which can provide a default key binding for the reference Handler implementation.
DefaultEvent must return a string representation of the event with keys separated by dashes, e.g. ctrl-s or alt-f.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is a (pkg/input).Handler implementation that handles basic key bindings and keyboard input. It isn't intended for heavily customized configurations, so key bindings are limited to a single event, and no modes are supported.
This can be overridden in plugins, so if you're looking for key chords (emacs) or modes (vim), someone may have written one - or you can write one yourself.
func (*Handler) KeyPressed ¶
KeyPressed implements (pkg/input).Handler.
Click to show internal directories.
Click to hide internal directories.