Rename Keybinding.targetSelector to targetElementId (#2169)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2025-01-05 16:03:38 -05:00
committed by GitHub
parent 477f4b275d
commit 975c2248c5
11 changed files with 52 additions and 16 deletions

View File

@@ -655,7 +655,7 @@ export class ComfyApp {
const keyCombo = KeyComboImpl.fromEvent(e)
const keybindingStore = useKeybindingStore()
const keybinding = keybindingStore.getKeybinding(keyCombo)
if (keybinding && keybinding.targetSelector === '#graph-canvas') {
if (keybinding && keybinding.targetElementId === 'graph-canvas') {
useCommandStore().execute(keybinding.commandId)
block_default = true
}