From fcad1bf13337453536edf25f3377c15c79f4a635 Mon Sep 17 00:00:00 2001 From: DemonGatanjieu <207458273+DemonGatanjieu@users.noreply.github.com> Date: Tue, 13 Oct 2026 14:07:53 +0800 Subject: [PATCH] The default shortcut is Shift+B, not B comfyui-browser toggles its own window on a plain b (hard-coded, no setting), so with both installed one press opened one window and closed the other. Shift+B keeps the B and leaves comfyui-browser alone (it checks for a lowercase b). Tested with both plugins loaded. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- README.md | 4 ++-- docs/architecture/frontend.md | 2 +- web/modules/shortcut_controls.js | 7 ++++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e16e39..2d58896 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ ### 💬 From a Bilibili comment (来自 B 站评论) - **Esc closes the browser (Esc 关闭浏览器)**: Esc closes a dialog or menu first; on a page one level down (a model's details, one combo, one workflow) it goes back to the list, as the page's back button does; on any other page, Workflows and Combos included, it closes the browser. The shortcut and the Extensions menu entry now close the browser when it is open. Esc in a text box still belongs to the text box. -- **B opens the browser (B 键打开浏览器)**: the default shortcut is now the single key **B** (B again closes it), like ComfyUI's own M, N and W for its side panels. Ctrl + Shift + M is taken by Chrome and Edge (switch profile) before ComfyUI sees it. A shortcut you changed yourself stays as it is; change it in ComfyUI Settings → Keybinding. +- **Shift + B opens the browser (Shift + B 打开浏览器)**: the default shortcut is now **Shift + B** (again to close it). Ctrl + Shift + M is taken by Chrome and Edge (switch profile) before ComfyUI sees it, and B alone already opens comfyui-browser's window. A shortcut you changed yourself stays as it is; change it in ComfyUI Settings → Keybinding. - **Dragging a gallery picture hides the browser (拖图时浏览器让开)**: while you drag a picture, the browser fades out as it does for other cards, so the canvas and the node under it take the drop. - **Show in folder (打开所在文件夹)**: a model's details have **Show in folder** next to **Copy path**: Explorer (or Finder) opens in front of the browser with the file selected. Only on the computer ComfyUI runs on. - **Insert a picture as a node (图片作为节点插入)**: right-click a gallery picture → **Insert as a Load Image node** gives you a Load Image node showing that picture: the browser closes and the node follows the pointer until a click puts it down (Esc cancels), like a combo's **Put on canvas**. The picture is copied into ComfyUI's input folder, as when you drop a file on the node (the same picture is kept once). diff --git a/README.md b/README.md index ccd0b04..4c98da3 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ Tools on the rail: 3. For character voices, also install [Anomalous_TTS](https://github.com/DemonGatanjieu/Anomalous_TTS) the same way. It is optional. 4. **Updating**: click the **!** button at the top right of the browser; it shows the current version, and **Check for updates / switch version** opens the version panel. Update to the newest release, go back to an earlier one or return to the latest, then restart ComfyUI. The plugin never checks for updates on its own. -Open the browser with **B** (again to close; not while typing in a text box), the floating button on the canvas, or **Extensions → Anomalous Model Browser** in ComfyUI's menu. **ComfyUI Settings → Anomalous Model Browser → Interface** changes the shortcut, the language and how the browser is opened (floating button, a button next to Run, or the Extensions menu only). +Open the browser with **Shift + B** (again to close), the floating button on the canvas, or **Extensions → Anomalous Model Browser** in ComfyUI's menu. **ComfyUI Settings → Anomalous Model Browser → Interface** changes the shortcut, the language and how the browser is opened (floating button, a button next to Run, or the Extensions menu only). The first time you open it, start on **Home**: **Scan model folders** fills in covers and trigger words, and **Tour the interface** points at each part of the window. @@ -200,7 +200,7 @@ The first time you open it, start on **Home**: **Scan model folders** fills in c - 点 **检查更新 / 切换版本** 打开版本面板,可以更新到最新版、回退到以前的版本,或回到最新版; - 换完版本后重启 ComfyUI。插件不会自己联网检查更新。 -打开方式有三种:按 **B** 键(再按一次关闭;在文本框里打字时不会触发)、点击画布上的悬浮按钮,或者从 ComfyUI 菜单 **扩展 → Anomalous Model Browser** 打开。在 **ComfyUI 设置 → Anomalous Model Browser → 界面** 里,可以修改快捷键、插件语言和打开方式(悬浮按钮、运行按钮旁的按钮,或只用扩展菜单)。 +打开方式有三种:按 **Shift + B**(再按一次关闭)、点击画布上的悬浮按钮,或者从 ComfyUI 菜单 **扩展 → Anomalous Model Browser** 打开。在 **ComfyUI 设置 → Anomalous Model Browser → 界面** 里,可以修改快捷键、插件语言和打开方式(悬浮按钮、运行按钮旁的按钮,或只用扩展菜单)。 第一次打开时会停在 **主页**:点 **扫描模型文件夹** 补全封面和触发词;点 **界面导览** 会逐一指给你看窗口的各个部分。 diff --git a/docs/architecture/frontend.md b/docs/architecture/frontend.md index ba2db96..8e29ece 100644 --- a/docs/architecture/frontend.md +++ b/docs/architecture/frontend.md @@ -104,7 +104,7 @@ button, and `Extensions -> Anomalous Model Browser` command. Entry presentations are mutually exclusive and reuse the same browser instance. The Extensions command remains available as a recovery path in every mode. -Native commands own the default `B` browser binding (Ctrl + Shift + M before v1.58.2: Chrome +Native commands own the default `Shift + B` browser binding (Ctrl + Shift + M before v1.58.2: Chrome and Edge take it for switching profiles) and the `Ctrl + Shift + L` Prompt Studio binding. Shortcut customization delegates to ComfyUI's command/keybinding panel and recorder; the plugin does not install diff --git a/web/modules/shortcut_controls.js b/web/modules/shortcut_controls.js index 89167f6..7814390 100644 --- a/web/modules/shortcut_controls.js +++ b/web/modules/shortcut_controls.js @@ -1,7 +1,8 @@ -// B alone, like ComfyUI's own single keys for its side panels (M, N, W); Ctrl+Shift+M is taken -// by Chrome and Edge (switch profile) before the page sees it. +// Shift+B ("B" for browser). Not B alone: comfyui-browser toggles its own window on a plain b +// and has no setting for it. Not Ctrl+Shift+M: Chrome and Edge take it (switch profile). export const DEFAULT_BROWSER_SHORTCUT = Object.freeze({ - key: 'b' + key: 'b', + shift: true }); export const DEFAULT_MATERIALS_SHORTCUT = Object.freeze({