mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 08:00:05 +00:00
enable cmd shortcuts for mac (mute & bypass) (#557)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user