Hotkeys.js: Add muted 'm' key

This commit is contained in:
Jesús 2020-12-15 22:40:02 -05:00
parent 97f00efa8a
commit ff408e84cf
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -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();