aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/static')
-rw-r--r--youtube/static/js/hotkeys.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube/static/js/hotkeys.js b/youtube/static/js/hotkeys.js
index 8c08c11..b325e39 100644
--- a/youtube/static/js/hotkeys.js
+++ b/youtube/static/js/hotkeys.js
@@ -29,6 +29,10 @@ function onKeyDown(e) {
if (document.fullscreen) document.exitFullscreen();
else v.requestFullscreen();
}
+ else if (c == "m") {
+ if (v.muted == false) {v.muted = true;}
+ else {v.muted = false;}
+ }
else if (c == "c") {
e.preventDefault();
let tt = getActiveTranscriptTrack();