diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-12-27 18:24:42 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-12-27 18:24:42 -0500 |
commit | 42ef6c6e576a0e753bfb2ac41cf1fbfded045d1d (patch) | |
tree | 0a7413b74d6dfb9ecec2fc38792a32f508869097 /internal/switcher/switcher.go | |
parent | 6cfbeaa63da850487853241708b848ff3195764c (diff) |
Ctrl-c overrides color input and quits termpicker
Diffstat (limited to 'internal/switcher/switcher.go')
-rw-r--r-- | internal/switcher/switcher.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |