ComfyUI_frontend
ComfyUI_frontend copied to clipboard
[Keybinding] Add condition to keybinding
Related PR: https://github.com/Comfy-Org/ComfyUI_frontend/pull/1081
Currently we already have keybindings that are global and that are only triggered when litegraph canvas is focused. Later when we add more views to the UI, there will be a need to trigger different subset of keybindings based on the workspace state, e.g. which view is focused.