MCPcopy Create free account
hub / github.com/charmbracelet/bubbles / KeyMap

Struct KeyMap

table/table.go:42–51  ·  view source on GitHub ↗

KeyMap defines keybindings. It satisfies to the help.KeyMap interface, which is used to render the help menu.

Source from the content-addressed store, hash-verified

40// KeyMap defines keybindings. It satisfies to the help.KeyMap interface, which
41// is used to render the help menu.
42type KeyMap struct {
43 LineUp key.Binding
44 LineDown key.Binding
45 PageUp key.Binding
46 PageDown key.Binding
47 HalfPageUp key.Binding
48 HalfPageDown key.Binding
49 GotoTop key.Binding
50 GotoBottom key.Binding
51}
52
53// ShortHelp implements the KeyMap interface.
54func (km KeyMap) ShortHelp() []key.Binding {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected