Toggle mute with Ctrl+M

Closes #117
This commit is contained in:
Rafał Dzięgiel
2021-09-06 12:34:11 +02:00
parent d49df86397
commit 574e084383
4 changed files with 45 additions and 11 deletions

View File

@@ -18,6 +18,7 @@ var actions = {
prev_track: ['<Ctrl>Left'],
volume_up: ['Up'],
volume_down: ['Down'],
mute: ['<Ctrl>m'],
toggle_play: ['space'],
change_repeat: ['<Ctrl>r'],
reveal_controls: ['Return'],
@@ -74,6 +75,9 @@ function handleAction(action, window)
case 'volume_down':
player.adjust_volume(bool);
break;
case 'mute':
player.mute ^= true;
break;
case 'next_track':
player.playlistWidget.nextTrack();
break;