File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
src/renderer/components/ft-video-player Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -1568,7 +1568,12 @@ export default Vue.extend({
1568
1568
case 73 :
1569
1569
// I Key
1570
1570
event . preventDefault ( )
1571
- this . toggleShowStatsModal ( )
1571
+ // Toggle Picture in Picture Mode
1572
+ if ( ! this . player . isInPictureInPicture ( ) ) {
1573
+ this . player . requestPictureInPicture ( )
1574
+ } else if ( this . player . isInPictureInPicture ( ) ) {
1575
+ this . player . exitPictureInPicture ( )
1576
+ }
1572
1577
break
1573
1578
case 49 :
1574
1579
// 1 Key
@@ -1642,12 +1647,8 @@ export default Vue.extend({
1642
1647
break
1643
1648
case 68 :
1644
1649
// D Key
1645
- // Toggle Picture in Picture Mode
1646
- if ( ! this . player . isInPictureInPicture ( ) ) {
1647
- this . player . requestPictureInPicture ( )
1648
- } else if ( this . player . isInPictureInPicture ( ) ) {
1649
- this . player . exitPictureInPicture ( )
1650
- }
1650
+ event . preventDefault ( )
1651
+ this . toggleShowStatsModal ( )
1651
1652
break
1652
1653
case 27 :
1653
1654
// esc Key
You can’t perform that action at this time.
0 commit comments