From 42ef6c6e576a0e753bfb2ac41cf1fbfded045d1d Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Fri, 27 Dec 2024 18:24:42 -0500 Subject: Ctrl-c overrides color input and quits termpicker --- internal/switcher/switcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/switcher') diff --git a/internal/switcher/switcher.go b/internal/switcher/switcher.go index bd58fe9..8de31c6 100644 --- a/internal/switcher/switcher.go +++ b/internal/switcher/switcher.go @@ -168,7 +168,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { case tea.KeyMsg: - if m.input.Focused() { + if m.input.Focused() && msg.String() != "ctrl+c" { keys.esc.SetEnabled(true) keys.confirm.SetEnabled(true) if key.Matches(msg, keys.esc) { -- cgit v1.2.3