зеркало из https://github.com/mozilla/gecko-dev.git
Bug #259115 --> improve accessibility for the quick search box. F4/Alt up / Alt down support
sr=bienvenu
This commit is contained in:
Родитель
acfc15fec7
Коммит
4739d789da
|
@ -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>
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче