From 655973220714bf88cd33d89f224569c662f35d02 Mon Sep 17 00:00:00 2001 From: vallode <18506096+vallode@users.noreply.github.com> Date: Fri, 8 Apr 2022 04:40:29 +0200 Subject: [PATCH] Switch debug and picture in picture shortcuts for consistency (#2141) * Switch debug and picture in picture shortcuts for consistency * Add preventDefault to statsmodal shortcut --- .../components/ft-video-player/ft-video-player.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/renderer/components/ft-video-player/ft-video-player.js b/src/renderer/components/ft-video-player/ft-video-player.js index 6bd60840..c10c6752 100644 --- a/src/renderer/components/ft-video-player/ft-video-player.js +++ b/src/renderer/components/ft-video-player/ft-video-player.js @@ -1568,7 +1568,12 @@ export default Vue.extend({ case 73: // I Key event.preventDefault() - this.toggleShowStatsModal() + // Toggle Picture in Picture Mode + if (!this.player.isInPictureInPicture()) { + this.player.requestPictureInPicture() + } else if (this.player.isInPictureInPicture()) { + this.player.exitPictureInPicture() + } break case 49: // 1 Key @@ -1642,12 +1647,8 @@ export default Vue.extend({ break case 68: // D Key - // Toggle Picture in Picture Mode - if (!this.player.isInPictureInPicture()) { - this.player.requestPictureInPicture() - } else if (this.player.isInPictureInPicture()) { - this.player.exitPictureInPicture() - } + event.preventDefault() + this.toggleShowStatsModal() break case 27: // esc Key