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

Skip prevented keyboard event

This commit is contained in:
Dmitry Lyzo 2025-01-31 01:52:37 +03:00
parent 4793223f5d
commit 84563176a1
2 changed files with 4 additions and 0 deletions

View file

@ -1246,12 +1246,14 @@ export default function (view) {
case 'ArrowLeft':
case 'ArrowRight':
if (!e.shiftKey) {
e.preventDefault();
showOsd(nowPlayingPositionSlider);
nowPlayingPositionSlider.dispatchEvent(new KeyboardEvent(e.type, e));
}
return;
case 'Enter':
if (e.target.tagName !== 'BUTTON') {
e.preventDefault();
playbackManager.playPause(currentPlayer);
showOsd(btnPlayPause);
}