Added mute shortcut.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user