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:
commit
9186c0af41
1 changed files with 9 additions and 0 deletions
|
@ -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) {
|
nowPlayingPositionSlider.updateBubbleHtml = function(bubble, value) {
|
||||||
showOsd();
|
showOsd();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue