wtf, single button keybindings don't work in comfy frontend, did nothing to fix it, just removed some junk

This commit is contained in:
m0rtus59
2026-11-08 19:16:44 +05:00
parent 56452eb855
commit 6a0b0cd71a
+2 -12
View File
@@ -29,6 +29,7 @@ function setupKeydownShortcuts() {
activeEl.tagName === "SELECT"
)) return;
// Q: Toggle Queue Sidebar
if (e.key.toLowerCase() === "q" && !e.ctrlKey && !e.metaKey && !e.shiftKey) {
e.preventDefault();
e.stopPropagation();
@@ -40,6 +41,7 @@ function setupKeydownShortcuts() {
}
}
// Ctrl+Q / Cmd+Q: Toggle Ignore Selected Node
if (e.key.toLowerCase() === "q" && (e.ctrlKey || e.metaKey) && !e.shiftKey) {
e.preventDefault();
e.stopPropagation();
@@ -291,18 +293,6 @@ app.registerExtension({
},
commands: [
{
id: "ComfySidebar.ToggleSidebar",
label: t("Toggle Comfy Queue Sidebar"),
function: () => {
if (app.extensionManager?.command?.hasCommand?.("Workspace.ToggleSidebarTab.classic-comfy-sidebar")) {
app.extensionManager.command.execute("Workspace.ToggleSidebarTab.classic-comfy-sidebar");
} else {
const ourBtn = findOurSidebarButton();
if (ourBtn) ourBtn.click();
}
}
},
{
id: "ComfySidebar.ToggleIgnoreNode",
label: t("Toggle Ignore Selected Node(s) in Queue"),