1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #5687 from shoffing/slider-play-pause

play/pause when Enter is pressed on non-dragging position slider
This commit is contained in:
Bill Thornton 2024-07-10 00:04:20 -04:00 committed by GitHub
commit 9186c0af41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1775,6 +1775,15 @@ export default function (view) {
}
});
nowPlayingPositionSlider.addEventListener('keydown', function (e) {
if (e.defaultPrevented) return;
const key = keyboardnavigation.getKeyName(e);
if (key === 'Enter') {
playbackManager.playPause(currentPlayer);
}
});
nowPlayingPositionSlider.updateBubbleHtml = function(bubble, value) {
showOsd();