Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Default = &KeyMap{ Quit: key.NewBinding( key.WithKeys(tea.KeyCtrlQ.String()), key.WithHelp(tea.KeyCtrlQ.String(), "Quit"), ), Send: key.NewBinding( key.WithKeys("Ctrl+Enter"), key.WithHelp("Ctrl+Enter", "Send request"), ), NextPane: key.NewBinding( key.WithKeys(tea.KeyTab.String()), key.WithHelp(tea.KeyTab.String(), "Next Pane"), ), PreviousPane: key.NewBinding( key.WithKeys(tea.KeyShiftTab.String()), key.WithHelp(tea.KeyShiftTab.String(), "Previous Pane"), ), } )
Functions ¶
This section is empty.
Types ¶
type KeyMap ¶
type KeyMap struct { Quit key.Binding Send key.Binding // Delete key.Binding // Help key.Binding NextPane key.Binding PreviousPane key.Binding }
KeyMap is a collection of key bindings for the application.
Click to show internal directories.
Click to hide internal directories.