update components
This commit is contained in:
parent
8d9ac6ef88
commit
2a4b879c21
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