mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Simplify toggle full screen to shaka-player.
This commit is contained in:
parent
172d542cd3
commit
473814f2e4
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue