Bug 281361 - tab navigation with left/right arrow keys moves in the wrong direction. r=mconnor

This commit is contained in:
mozilla.mano%sent.com 2005-02-21 18:28:57 +00:00
Родитель 7ff37c4517
Коммит 1ed5e3e1ca
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

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