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) {
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