Commit 04162f30f5
Unsigned
Layout: unified · split
internal/selection_menu.go +1 −1
| @@ -51,7 +51,7 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { | |||
| 51 | switch msg := msg.(type) { | 51 | switch msg := msg.(type) { |
| 52 | case tea.KeyMsg: | 52 | case tea.KeyMsg: |
| 53 | switch msg.String() { | 53 | switch msg.String() { |
| 54 | case "ctrl+c", "q": | 54 | case "ctrl+c": |
| 55 | // Return quit selection option instead of quitting the program | 55 | // Return quit selection option instead of quitting the program |
| 56 | m.filteredKeys[m.selected] = SelectionOption{"quit", "-1"} | 56 | m.filteredKeys[m.selected] = SelectionOption{"quit", "-1"} |
| 57 | return m, tea.Quit // Properly exit the program | 57 | return m, tea.Quit // Properly exit the program |