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

pull/4238/head
ja 2025-12-23 13:37:28 -05:00 committed by GitHub
parent a90f2b9723
commit 86b9b7b15a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

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