From c7cdf78e608d0bbb198834854cb862004743c5be Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 18 Jan 2026 03:45:08 +0100 Subject: [PATCH] Add Ctrl+Shift+L keyboard shortcut to open Model Linker --- web/linker.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/web/linker.js b/web/linker.js index 5e9c4a1..00da7e9 100644 --- a/web/linker.js +++ b/web/linker.js @@ -683,6 +683,14 @@ class ModelLinker { this.dialog = new LinkerManagerDialog(); } + // Register keyboard shortcut (Ctrl+Shift+L) + document.addEventListener('keydown', (e) => { + if (e.ctrlKey && e.shiftKey && e.key.toLowerCase() === 'l') { + e.preventDefault(); + this.openLinkerManager(); + } + }); + // Try to use new ComfyUI button system (like ComfyUI Manager does) try { // Dynamic imports for ComfyUI's button components @@ -694,7 +702,7 @@ class ModelLinker { new ComfyButton({ icon: "link-variant", action: () => this.openLinkerManager(), - tooltip: "Model Linker - Resolve missing models in workflow", + tooltip: "Model Linker - Resolve missing models (Ctrl+Shift+L)", content: "Model Linker", classList: "comfyui-button comfyui-menu-mobile-collapse" }).element @@ -734,7 +742,7 @@ class ModelLinker { this.linkerButton = $el("button", { id: this.buttonId, textContent: "🔗 Model Linker", - title: "Open Model Linker to resolve missing models in workflow", + title: "Open Model Linker to resolve missing models (Ctrl+Shift+L)", onclick: () => { this.openLinkerManager(); },