mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 01:39:47 +00:00
Fix save workflow binding on Ctrl + S (#1442)
* Fix save workflow binding on Ctrl + S * nit
This commit is contained in:
@@ -31,8 +31,9 @@ app.registerExtension({
|
|||||||
const commandStore = useCommandStore()
|
const commandStore = useCommandStore()
|
||||||
const keybinding = keybindingStore.getKeybinding(keyCombo)
|
const keybinding = keybindingStore.getKeybinding(keyCombo)
|
||||||
if (keybinding && keybinding.targetSelector !== '#graph-canvas') {
|
if (keybinding && keybinding.targetSelector !== '#graph-canvas') {
|
||||||
await commandStore.execute(keybinding.commandId)
|
// Prevent default browser behavior first, then execute the command
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
await commandStore.execute(keybinding.commandId)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user