mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add autofocus on itemsContainer
This commit is contained in:
parent
7a10be5933
commit
3962dcf58e
1 changed files with 9 additions and 0 deletions
|
@ -52,6 +52,15 @@ define(["focusManager"], function (focusManager) {
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (notFound) {
|
||||||
|
// FIXME: Multiple itemsContainers
|
||||||
|
var itemsContainer = container.querySelector(".itemsContainer");
|
||||||
|
|
||||||
|
if (itemsContainer) {
|
||||||
|
notFound = !focusManager.autoFocus(itemsContainer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (notFound) {
|
if (notFound) {
|
||||||
focusManager.autoFocus(container);
|
focusManager.autoFocus(container);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue