From 8ff1751f5bdbeafac29c714b658c1b5b98034b62 Mon Sep 17 00:00:00 2001 From: "kyle.watson" Date: Sun, 14 Jun 2020 16:47:43 +0100 Subject: [PATCH] Videojs hotkeys to enable shortcut on button focus --- src/renderer/components/ft-video-player/ft-video-player.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 f2f7ae4f..cd3f158b 100644 --- a/src/renderer/components/ft-video-player/ft-video-player.js +++ b/src/renderer/components/ft-video-player/ft-video-player.js @@ -221,7 +221,11 @@ export default Vue.extend({ qualitySelector(videojs, { showQualitySelectionLabelInControlBar: true }) } - this.player = videojs(videoPlayer) + this.player = videojs(videoPlayer, { + userActions: { + hotkeys: this.keyboardShortcutHandler + } + }) this.player.volume(this.volume) this.player.playbackRate(this.defaultPlayback)