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

Struct KeyMap

textinput/textinput.go:50–67  ·  view source on GitHub ↗

KeyMap is the key bindings for different actions within the textinput.

Source from the content-addressed store, hash-verified

48
49// KeyMap is the key bindings for different actions within the textinput.
50type KeyMap struct {
51 CharacterForward key.Binding
52 CharacterBackward key.Binding
53 WordForward key.Binding
54 WordBackward key.Binding
55 DeleteWordBackward key.Binding
56 DeleteWordForward key.Binding
57 DeleteAfterCursor key.Binding
58 DeleteBeforeCursor key.Binding
59 DeleteCharacterBackward key.Binding
60 DeleteCharacterForward key.Binding
61 LineStart key.Binding
62 LineEnd key.Binding
63 Paste key.Binding
64 AcceptSuggestion key.Binding
65 NextSuggestion key.Binding
66 PrevSuggestion key.Binding
67}
68
69// DefaultKeyMap is the default set of key bindings for navigating and acting
70// upon the textinput.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected