Bug 806282 - Let SPACE and RETURN open the popup in type="menu-button" buttons. r=enn

This commit is contained in:
Dão Gottwald 2013-01-08 23:27:58 +01:00
parent 96cf51c206
commit ab2d15bd5e

View File

@ -340,6 +340,17 @@
</method>
</implementation>
<handlers>
<handler event="keypress" keycode="VK_RETURN">
if (event.originalTarget == this)
this.open = true;
</handler>
<handler event="keypress" key=" ">
if (event.originalTarget == this)
this.open = true;
</handler>
</handlers>
</binding>
<binding id="menu-button" display="xul:menu"