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

Merge pull request #314 from oddstr13/pr-keyboard-navigation-1

Initial support for keyboard navigation (for webOS remote etc.)
This commit is contained in:
Anthony Lavado 2019-07-07 08:23:51 -04:00 committed by GitHub
commit f936c04d15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 59 additions and 0 deletions

View file

@ -322,6 +322,25 @@ define(["loading", "appRouter", "layoutManager", "connectionManager", "cardBuild
itemBirthLocation.classList.remove("hide"), itemBirthLocation.innerHTML = globalize.translate("BirthPlaceValue").replace("{0}", gmap)
} else itemBirthLocation.classList.add("hide");
setPeopleHeader(page, item), loading.hide()
try {
require(["focusManager"], function(focusManager) {
[".btnResume", ".btnPlay"].every(function (cls) {
var elems = page.querySelectorAll(cls);
for (var i = 0; i < elems.length; i++) {
if (focusManager.isCurrentlyFocusable(elems[i])) {
focusManager.focus(elems[i]);
return false;
}
}
return true;
});
});
} catch (e) {
console.log(e);
}
}
function logoImageUrl(item, apiClient, options) {