mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-07 09:11:42 +00:00
fix(tui): dismiss dialogs with ctrl+c (#12884)
This commit is contained in:
parent
7a463cd193
commit
17bdb5d56a
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ function init() {
|
|||
})
|
||||
|
||||
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)!
|
||||
current.onClose?.()
|
||||
setStore("stack", store.stack.slice(0, -1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue