Added mute shortcut.

This commit is contained in:
=
2025-04-20 14:33:19 -07:00
parent fd235bcf96
commit eaff1fcd70
2 changed files with 2 additions and 2 deletions

View File

@@ -242,7 +242,7 @@ struct accelKey {
char desc[64]; char desc[64];
char seq[64]; char seq[64];
}; };
#define NUM_ACCELS 7 #define NUM_ACCELS 8
extern struct accelKey acc_keys[NUM_ACCELS]; extern struct accelKey acc_keys[NUM_ACCELS];
extern struct accelKey def_acc_keys[NUM_ACCELS]; extern struct accelKey def_acc_keys[NUM_ACCELS];
extern int FindAccelerator(const char *name); extern int FindAccelerator(const char *name);

View File

@@ -1397,7 +1397,7 @@ MainWindow::eventFilter(QObject *receiver, QEvent *event)
} }
if ((QKeySequence)(ke->key() | ke->modifiers()) == FindAcceleratorSeq("mute")) if ((QKeySequence)(ke->key() | ke->modifiers()) == FindAcceleratorSeq("mute"))
{ {
ui->actionMute_Unmute->setShortcut(seq); ui->actionMute_Unmute->trigger();
} }
return true; return true;