mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +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 keybinding = keybindingStore.getKeybinding(keyCombo)
|
||||
if (keybinding && keybinding.targetSelector !== '#graph-canvas') {
|
||||
await commandStore.execute(keybinding.commandId)
|
||||
// Prevent default browser behavior first, then execute the command
|
||||
event.preventDefault()
|
||||
await commandStore.execute(keybinding.commandId)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user