ComfyUI-Arrow-Key-Canvas-Navigation

ComfyUI-Arrow-Key-Canvas-Navigation
★ 2

画布导航方向键控制平移速度设置ComfyUI扩展
为 ComfyUI 增加使用方向键平移画布的功能,可在设置中调整平移速度,提升画布导航效率。
💡 用方向键快速平移 ComfyUI 画布并调整速度。
🍴 1 Forks💻 JavaScript🔄 2024-09-29
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/af9fbf81e746
📄 README

ComfyUI-Arrow-Key-Canvas-Navigation

This custom “node” for ComfyUI enables pan navigation of the canvas using the arrow keys, with a customizable pan speed in ComfyUI’s Settings, under the “codecringebinge” subsection of the Settings Dialog’s left panel.

Note:

  • There are specific cases in which the arrow keys intentionally will not pan the canvas, such as when a node with more than one image is selected (as the arrow keys should retain their standard behavior of cycling through said images), or when the canvas is blocked by another UI window (e.g. the Comfy Manager, Comfy Settings, the pythongosssss Image Gallery, modals, etc.).
  • If you encounter scenarios when the arrow keys are panning the canvas when they shouldn’t (e.g. when a custom node opens a UI window blocking the canvas), you can report this in the GitHub Issues section of this repo and I might be able to exclude the UI windows in question via an update, or alternatively for a likely faster fix, you could identify a CSS class name for the window in question (e.g. by using your browser’s Developer Tools), add its name to the CANVAS_BLOCKING_UI_WINDOW_CLASSES string constant in arrow_key_canvas_navigation.js, and then restart ComfyUI and refresh the page.
  • Installation

    If using ComfyUI Manager:

  • Look for ComfyUI-Arrow-Key-Canvas-Navigation, confirm the author is codecringebinge, and install it.
  • If installing manually:

  • Clone this repo into the custom_nodes folder.
  • Thanks and cheers! 🍻