Skip to content

Commit 8ddedb9

Browse files
committed
Support ctrl-c on Tool Confirmation dialog
Signed-off-by: David Gageot <[email protected]>
1 parent 82106c6 commit 8ddedb9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/tui/dialog/tool_confirmation.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ func (d *toolConfirmationDialog) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
9494
}
9595
return d, core.CmdHandler(CloseDialogMsg{})
9696
}
97+
98+
if msg.String() == "ctrl+c" {
99+
return d, tea.Quit
100+
}
97101
}
98102

99103
return d, nil

0 commit comments

Comments
 (0)