mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #3340 from jellyfin/fix-focus-play-resume
Fix auto focus on Play/Resume
This commit is contained in:
commit
6c4b204d96
2 changed files with 18 additions and 12 deletions
|
@ -59,6 +59,9 @@ 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue