mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-12 14:53:25 +00:00
fix(tui): prevent keybinds from executing when dialog is open (#6017)
This commit is contained in:
parent
a90f2b9723
commit
86b9b7b15a
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue