mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Bug 806282 - Let SPACE and RETURN open the popup in type="menu-button" buttons. r=enn
This commit is contained in:
parent
96cf51c206
commit
ab2d15bd5e
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user