Skip to content

Commit 17bdb5d

Browse files
authored
fix(tui): dismiss dialogs with ctrl+c (#12884)
1 parent 7a463cd commit 17bdb5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opencode/src/cli/cmd/tui/ui/dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function init() {
5757
})
5858

5959
useKeyboard((evt) => {
60-
if (evt.name === "escape" && store.stack.length > 0) {
60+
if ((evt.name === "escape" || (evt.ctrl && evt.name === "c")) && store.stack.length > 0) {
6161
const current = store.stack.at(-1)!
6262
current.onClose?.()
6363
setStore("stack", store.stack.slice(0, -1))

0 commit comments

Comments
 (0)