From 0a329ab387f8b8470dad96df0df193dcba6b9d17 Mon Sep 17 00:00:00 2001 From: "Daniel M. Capella" Date: Mon, 8 Jul 2024 21:00:33 +0000 Subject: [PATCH 1/4] Display previous/next track keyboard shortcuts --- src/controllers/playback/video/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/playback/video/index.html b/src/controllers/playback/video/index.html index d9de34d308e..595e1fbab61 100644 --- a/src/controllers/playback/video/index.html +++ b/src/controllers/playback/video/index.html @@ -33,7 +33,7 @@

- @@ -57,7 +57,7 @@

- @@ -65,7 +65,7 @@

- +
From 744720517a34e0160c4ead023ecad02d01a05fb6 Mon Sep 17 00:00:00 2001 From: "Daniel M. Capella" Date: Fri, 12 Jul 2024 20:03:31 -0400 Subject: [PATCH 2/4] Display keyboard shortcuts in uppercase --- src/controllers/playback/video/index.html | 12 ++++++------ src/controllers/playback/video/index.js | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/controllers/playback/video/index.html b/src/controllers/playback/video/index.html index 595e1fbab61..4a984372924 100644 --- a/src/controllers/playback/video/index.html +++ b/src/controllers/playback/video/index.html @@ -33,7 +33,7 @@

- @@ -41,7 +41,7 @@

- @@ -49,7 +49,7 @@

- @@ -57,7 +57,7 @@

- @@ -80,7 +80,7 @@

-
@@ -96,7 +96,7 @@

-
diff --git a/src/controllers/playback/video/index.js b/src/controllers/playback/video/index.js index 3f55f9dc7cf..5e635170d2d 100644 --- a/src/controllers/playback/video/index.js +++ b/src/controllers/playback/video/index.js @@ -496,10 +496,10 @@ export default function (view) { icon.classList.remove('fullscreen_exit', 'fullscreen'); if (playbackManager.isFullscreen(currentPlayer)) { - button.setAttribute('title', globalize.translate('ExitFullscreen') + ' (f)'); + button.setAttribute('title', globalize.translate('ExitFullscreen') + ' (F)'); icon.classList.add('fullscreen_exit'); } else { - button.setAttribute('title', globalize.translate('Fullscreen') + ' (f)'); + button.setAttribute('title', globalize.translate('Fullscreen') + ' (F)'); icon.classList.add('fullscreen'); } } @@ -721,7 +721,7 @@ export default function (view) { } btnPlayPauseIcon.classList.add(icon); - dom.setElementTitle(btnPlayPause, title + ' (k)', title); + dom.setElementTitle(btnPlayPause, title + ' (K)', title); } function updatePlayerStateInternal(event, player, state) { From 683ea9ac6b5f5df3703093fc0eb604456911330f Mon Sep 17 00:00:00 2001 From: "Daniel M. Capella" Date: Sun, 14 Jul 2024 18:05:51 -0400 Subject: [PATCH 3/4] Display previous/next chapter keyboard shortcuts --- src/controllers/playback/video/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/playback/video/index.html b/src/controllers/playback/video/index.html index 4a984372924..a460ee8f6a3 100644 --- a/src/controllers/playback/video/index.html +++ b/src/controllers/playback/video/index.html @@ -37,7 +37,7 @@

- @@ -53,7 +53,7 @@

- From f8f8f260ce5e3b4eb50190d98246ab7a5e563622 Mon Sep 17 00:00:00 2001 From: "Daniel M. Capella" Date: Mon, 15 Jul 2024 23:30:11 -0400 Subject: [PATCH 4/4] Allow capital letters for keyboard shortcuts > On YouTube, Shift and CapsLock have no effect on these actions. --- src/controllers/playback/video/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/controllers/playback/video/index.js b/src/controllers/playback/video/index.js index 5e635170d2d..5f55d094b48 100644 --- a/src/controllers/playback/video/index.js +++ b/src/controllers/playback/video/index.js @@ -1245,6 +1245,7 @@ export default function (view) { } break; case 'k': + case 'K': playbackManager.playPause(currentPlayer); showOsd(btnPlayPause); break; @@ -1257,23 +1258,27 @@ export default function (view) { playbackManager.volumeDown(currentPlayer); break; case 'l': + case 'L': case 'ArrowRight': case 'Right': playbackManager.fastForward(currentPlayer); showOsd(btnFastForward); break; case 'j': + case 'J': case 'ArrowLeft': case 'Left': playbackManager.rewind(currentPlayer); showOsd(btnRewind); break; case 'f': + case 'F': if (!e.ctrlKey && !e.metaKey) { playbackManager.toggleFullscreen(currentPlayer); } break; case 'm': + case 'M': playbackManager.toggleMute(currentPlayer); break; case 'p':