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

update components

This commit is contained in:
Luke Pulverenti 2016-02-02 15:36:33 -05:00
parent 4569cb5b6d
commit 003fd2ae7e
9 changed files with 92 additions and 27 deletions

View file

@ -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) {