fix(tui): prevent keybinds from executing when dialog is open (#6017)

This commit is contained in:
ja
2025-12-23 13:37:28 -05:00
committed by GitHub
parent a90f2b9723
commit 86b9b7b15a

View File

@@ -45,6 +45,7 @@ function init() {
useKeyboard((evt) => {
if (suspended()) return
if (dialog.stack.length > 0) return
for (const option of options()) {
if (option.keybind && keybind.match(option.keybind, evt)) {
evt.preventDefault()