"deploy/git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "c1d19ce23fe6c5647646c541efbda21fd79d5462"
Unverified Commit e53b1592 authored by ruucm's avatar ruucm Committed by GitHub
Browse files

enable cmd shortcuts for mac (mute & bypass) (#3792)

parent 7c5fa7f4
...@@ -1084,7 +1084,7 @@ export class ComfyApp { ...@@ -1084,7 +1084,7 @@ export class ComfyApp {
if (e.type == "keydown" && !e.repeat) { if (e.type == "keydown" && !e.repeat) {
// Ctrl + M mute/unmute // Ctrl + M mute/unmute
if (e.key === 'm' && e.ctrlKey) { if (e.key === 'm' && (e.metaKey || e.ctrlKey)) {
if (this.selected_nodes) { if (this.selected_nodes) {
for (var i in this.selected_nodes) { for (var i in this.selected_nodes) {
if (this.selected_nodes[i].mode === 2) { // never if (this.selected_nodes[i].mode === 2) { // never
...@@ -1098,7 +1098,7 @@ export class ComfyApp { ...@@ -1098,7 +1098,7 @@ export class ComfyApp {
} }
// Ctrl + B bypass // Ctrl + B bypass
if (e.key === 'b' && e.ctrlKey) { if (e.key === 'b' && (e.metaKey || e.ctrlKey)) {
if (this.selected_nodes) { if (this.selected_nodes) {
for (var i in this.selected_nodes) { for (var i in this.selected_nodes) {
if (this.selected_nodes[i].mode === 4) { // never if (this.selected_nodes[i].mode === 4) { // never
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment