fix: resolved escape key presses not canceling prompt for required vars (#2942)

Co-authored-by: Anil Natha <anilnatha@AnilsMacStudio.lan>
This commit is contained in:
Anil Natha
2026-08-10 23:47:21 -07:00
committed by GitHub
parent 49e929d353
commit 5e6b365fe8

View File

@@ -114,7 +114,7 @@ func (m textModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) {
case tea.KeyPressMsg:
switch msg.Keystroke() {
case "ctrl+c", "escape":
case "ctrl+c", "esc":
m.cancelled = true
m.done = true
return m, tea.Quit
@@ -164,7 +164,7 @@ func (m selectModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) {
case tea.KeyPressMsg:
switch msg.Keystroke() {
case "ctrl+c", "escape":
case "ctrl+c", "esc":
m.cancelled = true
m.done = true
return m, tea.Quit