From 8b75345ea39a08605087cd3e53f87b3daa4cd26f Mon Sep 17 00:00:00 2001 From: abs3nt Date: Wed, 11 Jan 2023 14:35:14 -0800 Subject: [PATCH] q --- internal/tui/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/tui/main.go b/internal/tui/main.go index 64fed9a..e71aa61 100644 --- a/internal/tui/main.go +++ b/internal/tui/main.go @@ -200,7 +200,7 @@ func (m mainModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.list.ResetSelected() m.list.NewStatusMessage("Setting view to devices") } - if msg.String() == "backspace" || msg.String() == "esc" { + if msg.String() == "backspace" || msg.String() == "esc" || msg.String() == "q" { if m.mode == "playlist" || m.mode == "tracks" || m.mode == "devices" { m.mode = "main" m.list.NewStatusMessage("Setting view to main") @@ -214,7 +214,7 @@ func (m mainModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } m.list.ResetSelected() } - if msg.String() == "ctrl+c" || msg.String() == "q" { + if msg.String() == "ctrl+c" { return m, tea.Quit } if msg.String() == "enter" || msg.String() == "spacebar" {