WithKeyMap sets the key map.
(km KeyMap)
| 193 | |
| 194 | // WithKeyMap sets the key map. |
| 195 | func WithKeyMap(km KeyMap) Option { |
| 196 | return func(m *Model) { |
| 197 | m.KeyMap = km |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | // Update is the Bubble Tea update loop. |
| 202 | func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) { |