summaryrefslogtreecommitdiff
path: root/internal/switcher
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-12-27 18:24:42 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-12-27 18:24:42 -0500
commit42ef6c6e576a0e753bfb2ac41cf1fbfded045d1d (patch)
tree0a7413b74d6dfb9ecec2fc38792a32f508869097 /internal/switcher
parent6cfbeaa63da850487853241708b848ff3195764c (diff)
Ctrl-c overrides color input and quits termpicker
Diffstat (limited to 'internal/switcher')
-rw-r--r--internal/switcher/switcher.go2
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) {