fix(tui): prevent keybinds from executing when dialog is open (#6017)
parent
a90f2b9723
commit
86b9b7b15a
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue