Bug #259115 --> improve accessibility for the quick search box. F4/Alt up / Alt down support

sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2005-08-04 23:07:44 +00:00
Родитель acfc15fec7
Коммит 4739d789da
1 изменённых файлов: 16 добавлений и 0 удалений

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

@ -86,6 +86,15 @@
this.clearButtonHidden = true; this.clearButtonHidden = true;
]]></body> ]]></body>
</method> </method>
<method name="openmenupopup">
<body>
<![CDATA[
document.getElementById('quick-search-menupopup').click();
return false;
]]>
</body>
</method>
</implementation> </implementation>
<handlers> <handlers>
@ -122,6 +131,13 @@
menuPopup.setAttribute('value', this.searchMode); menuPopup.setAttribute('value', this.searchMode);
} }
]]></handler> ]]></handler>
<handler event="keypress" keycode="vk_down" modifiers="alt" phase="capturing" action="return this.openmenupopup();"/>
<handler event="keypress" keycode="vk_up" modifiers="alt" phase="capturing" action="return this.openmenupopup();"/>
#ifndef XP_MACOSX
<handler event="keypress" keycode="vk_f4" phase="capturing" action="return this.openmenupopup();"/>
#endif
</handlers> </handlers>
</binding> </binding>