Skip to content

Commit

Permalink
enable cmd shortcuts for mac (mute & bypass) (comfyanonymous#3792)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruucm authored Jul 1, 2024
1 parent 7c5fa7f commit e53b159
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e53b159

Please sign in to comment.