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

This commit is contained in:
Kit Langton
2026-02-11 09:03:59 -05:00
committed by GitHub
parent 7a463cd193
commit 17bdb5d56a

View File

@@ -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))