Browse Source

fix(tui): dismiss dialogs with ctrl+c (#12884)

Kit Langton 2 weeks ago
parent
commit
17bdb5d56a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/opencode/src/cli/cmd/tui/ui/dialog.tsx

+ 1 - 1
packages/opencode/src/cli/cmd/tui/ui/dialog.tsx

@@ -57,7 +57,7 @@ function init() {
   })
   })
 
 
   useKeyboard((evt) => {
   useKeyboard((evt) => {
-    if (evt.name === "escape" && store.stack.length > 0) {
+    if ((evt.name === "escape" || (evt.ctrl && evt.name === "c")) && store.stack.length > 0) {
       const current = store.stack.at(-1)!
       const current = store.stack.at(-1)!
       current.onClose?.()
       current.onClose?.()
       setStore("stack", store.stack.slice(0, -1))
       setStore("stack", store.stack.slice(0, -1))