Escape instead of q so that the TUI can have search terms containing q

This commit is contained in:
David Dworken 2022-10-21 22:58:51 -07:00
parent 204ce10619
commit 7cdf9c0ac4

View File

@ -94,7 +94,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) {
case tea.KeyMsg:
switch msg.String() {
case "q", "ctrl+c":
case "esc", "ctrl+c":
m.quitting = true
return m, tea.Quit
case "enter":