mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix: Fix focus jump when focusing Resume
Make the Play button the Resume and replace Resume with Replay.
This commit is contained in:
parent
ca8cc653d9
commit
6ae03974f9
3 changed files with 10 additions and 24 deletions
|
@ -59,15 +59,11 @@ import layoutManager from './layoutManager';
|
|||
candidates.push(container.querySelector('.btnPreviousPage'));
|
||||
} else if (activeElement.classList.contains('btnSelectView')) {
|
||||
candidates.push(container.querySelector('.btnSelectView'));
|
||||
} else if (activeElement.classList.contains('btnPlay')) {
|
||||
// Resume has priority over Play
|
||||
candidates = candidates.concat(Array.from(container.querySelectorAll('.btnResume')));
|
||||
}
|
||||
|
||||
candidates.push(activeElement);
|
||||
}
|
||||
|
||||
candidates = candidates.concat(Array.from(container.querySelectorAll('.btnResume')));
|
||||
candidates = candidates.concat(Array.from(container.querySelectorAll('.btnPlay')));
|
||||
|
||||
let focusedElement;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue