From e53b1592ba8426e2c01cd9278bc19c2e4264065b Mon Sep 17 00:00:00 2001 From: ruucm Date: Mon, 1 Jul 2024 10:45:34 -0700 Subject: [PATCH] enable cmd shortcuts for mac (mute & bypass) (#3792) --- web/scripts/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/scripts/app.js b/web/scripts/app.js index b8889a4c..67e488bf 100644 --- a/web/scripts/app.js +++ b/web/scripts/app.js @@ -1084,7 +1084,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) { // never @@ -1098,7 +1098,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) { // never