Front-port "Add hotkey to enable captions with "c"

See https://github.com/TeamPiped/Piped/commit/f1f45551f42ab0101d75b648a9706a9e0a784420
This commit is contained in:
root
2021-11-16 20:06:25 +05:30
parent 3fd052a7b3
commit 6bf5f52ee3
+4
View File
@@ -310,6 +310,10 @@ export default {
videoEl.currentTime = videoEl.currentTime + 15
e.preventDefault()
},
c (e) {
self.$player.setTextTrackVisibility(!self.$player.isTextTrackVisible())
e.preventDefault()
},
Space: onSpace,
k: onSpace,
ArrowUp (e) {