mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-30 18:43:17 +00:00
Simplify toggle full screen to shaka-player.
This commit is contained in:
parent
172d542cd3
commit
473814f2e4
@ -304,8 +304,7 @@ export default {
|
|||||||
const videoEl = self.$refs.videoEl;
|
const videoEl = self.$refs.videoEl;
|
||||||
switch (handler.key) {
|
switch (handler.key) {
|
||||||
case "f":
|
case "f":
|
||||||
if (document.fullscreenElement) document.exitFullscreen();
|
self.ui.getControls().toggleFullScreen();
|
||||||
else self.ui.getControls().toggleFullScreen();
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
break;
|
break;
|
||||||
case "m":
|
case "m":
|
||||||
|
Loading…
Reference in New Issue
Block a user