diff --git a/src_web/comfyui/bookmark.ts b/src_web/comfyui/bookmark.ts index 7cfe269..af5a935 100644 --- a/src_web/comfyui/bookmark.ts +++ b/src_web/comfyui/bookmark.ts @@ -92,6 +92,9 @@ export class Bookmark extends RgthreeBaseVirtualNode { if (['input','textarea'].includes(target.localName)) { return; } + if (event.ctrlKey || event.metaKey || event.altKey) { + return; + } if (event.key.toLocaleLowerCase() === this.widgets[0]!.value.toLocaleLowerCase()) { this.canvasToBookmark(); } diff --git a/web/comfyui/bookmark.js b/web/comfyui/bookmark.js index 9fb919c..c863d09 100644 --- a/web/comfyui/bookmark.js +++ b/web/comfyui/bookmark.js @@ -45,6 +45,9 @@ export class Bookmark extends RgthreeBaseVirtualNode { if (['input', 'textarea'].includes(target.localName)) { return; } + if (event.ctrlKey || event.metaKey || event.altKey) { + return; + } if (event.key.toLocaleLowerCase() === this.widgets[0].value.toLocaleLowerCase()) { this.canvasToBookmark(); }