From f7c1392059fae30c1b1ac3c3ae61d3d8a0b63ee9 Mon Sep 17 00:00:00 2001 From: Airradda <3744856+Airradda@users.noreply.github.com> Date: Tue, 15 Dec 2020 19:07:40 +0000 Subject: [PATCH] Add Additional Keybinds (#855) * Reorder and resize playback rate menu Reorder playback rate from 3->0.25 to 0.25->3 and resize to include an additional visible playback rate (0.25->1.5) * Add Keybind (D) to Toggle Picture-In-Picture Mode * Revert "Reorder and resize playback rate menu" This reverts commit dacf1e9aa54e6d9d1bfe6ab79b561fd10f2b9ca3. * Added (s) keybind to toggle Full Window * Add description for (S) key * Fixed weird Git things during rebase Git injected some weird text during the rebase and duplicated a commit. Hopefully that's just my messing up the rebase and it won't happen in the future. --- .../components/ft-video-player/ft-video-player.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 ccb59f1c..36d85676 100644 --- a/src/renderer/components/ft-video-player/ft-video-player.js +++ b/src/renderer/components/ft-video-player/ft-video-player.js @@ -771,12 +771,26 @@ export default Vue.extend({ // Advance to next frame this.framebyframe(1) 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() + } + break case 27: // esc Key // Exit full window event.preventDefault() this.exitFullWindow() break + case 83: + // S Key + // Toggle Full Window Mode + this.toggleFullWindow() + break } } }