mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
4569cb5b6d
commit
003fd2ae7e
9 changed files with 92 additions and 27 deletions
|
@ -39,12 +39,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
event.detail.keyboardEvent.preventDefault();
|
||||
},
|
||||
|
||||
get _isRTL() {
|
||||
return window.getComputedStyle(this)['direction'] === 'rtl';
|
||||
},
|
||||
|
||||
_onLeftKey: function() {
|
||||
this._focusPrevious();
|
||||
if (this._isRTL) {
|
||||
this._focusNext();
|
||||
} else {
|
||||
this._focusPrevious();
|
||||
}
|
||||
},
|
||||
|
||||
_onRightKey: function() {
|
||||
this._focusNext();
|
||||
if (this._isRTL) {
|
||||
this._focusPrevious();
|
||||
} else {
|
||||
this._focusNext();
|
||||
}
|
||||
},
|
||||
|
||||
_onKeydown: function(event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue