aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/assets/player/peertube-player-manager.ts21
1 files changed, 8 insertions, 13 deletions
diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts
index 4ea9fda2e..2cbef48ea 100644
--- a/client/src/assets/player/peertube-player-manager.ts
+++ b/client/src/assets/player/peertube-player-manager.ts
@@ -543,24 +543,19 @@ export class PeertubePlayerManager {
543 enableVolumeScroll: false, 543 enableVolumeScroll: false,
544 enableModifiersForNumbers: false, 544 enableModifiersForNumbers: false,
545 545
546 rewindKey: function (event: KeyboardEvent) {
547 return isNaked(event, 'ArrowLeft')
548 },
549
550 forwardKey: function (event: KeyboardEvent) {
551 return isNaked(event, 'ArrowRight')
552 },
553
546 fullscreenKey: function (event: KeyboardEvent) { 554 fullscreenKey: function (event: KeyboardEvent) {
547 // fullscreen with the f key or Ctrl+Enter 555 // fullscreen with the f key or Ctrl+Enter
548 return isNaked(event, 'f') || (!event.altKey && event.ctrlKey && event.key === 'Enter') 556 return isNaked(event, 'f') || (!event.altKey && event.ctrlKey && event.key === 'Enter')
549 }, 557 },
550 558
551 seekStep: function (event: KeyboardEvent) {
552 // mimic VLC seek behavior, and default to 5 (original value is 5).
553 if (event.ctrlKey && event.altKey) {
554 return 5 * 60
555 } else if (event.ctrlKey) {
556 return 60
557 } else if (event.altKey) {
558 return 10
559 } else {
560 return 5
561 }
562 },
563
564 customKeys: { 559 customKeys: {
565 increasePlaybackRateKey: { 560 increasePlaybackRateKey: {
566 key: function (event: KeyboardEvent) { 561 key: function (event: KeyboardEvent) {