зеркало из https://github.com/mozilla/pjs.git
Bug 281361 - tab navigation with left/right arrow keys moves in the wrong direction. r=mconnor
This commit is contained in:
Родитель
7ff37c4517
Коммит
1ed5e3e1ca
|
@ -521,13 +521,15 @@
|
|||
|
||||
<handler event="keypress" keycode="vk_left">
|
||||
<![CDATA[
|
||||
this.parentNode.advanceSelectedTab(-1);
|
||||
var direction = window.getComputedStyle(this.parentNode, null).direction;
|
||||
this.parentNode.advanceSelectedTab(direction == 'ltr' ? -1 : 1);
|
||||
]]>
|
||||
</handler>
|
||||
|
||||
<handler event="keypress" keycode="vk_right">
|
||||
<![CDATA[
|
||||
this.parentNode.advanceSelectedTab(1);
|
||||
var direction = window.getComputedStyle(this.parentNode, null).direction;
|
||||
this.parentNode.advanceSelectedTab(direction == 'ltr' ? 1 : -1);
|
||||
]]>
|
||||
</handler>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче