mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 00:50:05 +00:00
fix: no input in text fields
This commit is contained in:
@@ -38,14 +38,13 @@ class KeyboardManager {
|
||||
if (!app.vueAppReady) return
|
||||
|
||||
if (event.key === 'Escape' && this.modifiers.length === 0) {
|
||||
event.preventDefault()
|
||||
this.handleEscapeKey()
|
||||
return
|
||||
}
|
||||
|
||||
if (event.key === 'F12') return // prevent opening dev tools
|
||||
|
||||
this.setContext(event)
|
||||
|
||||
const target = event.composedPath()[0] as HTMLElement
|
||||
const excludedTags = ['TEXTAREA', 'INPUT', 'SPAN']
|
||||
|
||||
@@ -58,6 +57,8 @@ class KeyboardManager {
|
||||
}
|
||||
}
|
||||
|
||||
this.setContext(event)
|
||||
|
||||
const keyCombo = KeyComboImpl.fromEvent(event)
|
||||
if (keyCombo.isModifier) return
|
||||
const keybindingStore = useKeybindingStore()
|
||||
|
||||
Reference in New Issue
Block a user