From 447d1c95efc9d9348947cef90c0138ed113db92e Mon Sep 17 00:00:00 2001 From: ruucm Date: Tue, 20 Aug 2024 08:01:17 -0700 Subject: [PATCH] enable cmd shortcuts for mac (mute & bypass) (#557) --- src/scripts/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/app.ts b/src/scripts/app.ts index 0a56f6b03..4e2eb523c 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -1299,7 +1299,7 @@ export class ComfyApp { if (e.type == 'keydown' && !e.repeat) { // Ctrl + M mute/unmute - if (e.key === 'm' && e.ctrlKey) { + if (e.key === 'm' && (e.metaKey || e.ctrlKey)) { if (this.selected_nodes) { for (var i in this.selected_nodes) { if (this.selected_nodes[i].mode === 2) { @@ -1314,7 +1314,7 @@ export class ComfyApp { } // Ctrl + B bypass - if (e.key === 'b' && e.ctrlKey) { + if (e.key === 'b' && (e.metaKey || e.ctrlKey)) { if (this.selected_nodes) { for (var i in this.selected_nodes) { if (this.selected_nodes[i].mode === 4) {