mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove tvos dts hack no longer needed
This commit is contained in:
parent
ef2c5637be
commit
fcdcd1d5f4
15 changed files with 112 additions and 47 deletions
|
@ -304,10 +304,12 @@ define(['dom'], function (dom) {
|
|||
var nearestElement = nearest[0].node;
|
||||
|
||||
// See if there's a focusable container, and if so, send the focus command to that
|
||||
var nearestElementFocusableParent = dom.parentWithClass(nearestElement, 'focusable');
|
||||
if (nearestElementFocusableParent && nearestElementFocusableParent !== nearestElement && activeElement) {
|
||||
if (dom.parentWithClass(activeElement, 'focusable') !== nearestElementFocusableParent) {
|
||||
nearestElement = nearestElementFocusableParent;
|
||||
if (activeElement) {
|
||||
var nearestElementFocusableParent = dom.parentWithClass(nearestElement, 'focusable');
|
||||
if (nearestElementFocusableParent && nearestElementFocusableParent !== nearestElement) {
|
||||
if (focusableContainer !== nearestElementFocusableParent) {
|
||||
nearestElement = nearestElementFocusableParent;
|
||||
}
|
||||
}
|
||||
}
|
||||
focus(nearestElement);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue