Skip to content

Commit 6559732

Browse files
authored
Switch debug and picture in picture shortcuts for consistency (#2141)
* Switch debug and picture in picture shortcuts for consistency * Add preventDefault to statsmodal shortcut
1 parent 884e096 commit 6559732

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/renderer/components/ft-video-player/ft-video-player.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,12 @@ export default Vue.extend({
15681568
case 73:
15691569
// I Key
15701570
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+
}
15721577
break
15731578
case 49:
15741579
// 1 Key
@@ -1642,12 +1647,8 @@ export default Vue.extend({
16421647
break
16431648
case 68:
16441649
// 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()
16511652
break
16521653
case 27:
16531654
// esc Key

0 commit comments

Comments
 (0)