Commit 04162f30f5

04162f30f598c962cd8a48755a1b6ef2e6e01e48

parent: 35848a7d27

Unsigned

Wraient <wraient.911@gmail.com> · 2024-12-18 13:01 UTC

q should not quit in selection

Layout: unified · split

internal/selection_menu.go +1 −1
@@ -51,7 +51,7 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
5151 switch msg := msg.(type) {
5252 case tea.KeyMsg:
5353 switch msg.String() {
54 case "ctrl+c", "q":
54 case "ctrl+c":
5555 // Return quit selection option instead of quitting the program
5656 m.filteredKeys[m.selected] = SelectionOption{"quit", "-1"}
5757 return m, tea.Quit // Properly exit the program