This refactors the bindToggleOnSpaceEnter function to use keydown and keyup listeners to provide the space/enter key functionality. This provides the following benefits: * A click event is triggered when pressing the space or enter key on the passed in "button" element. This simulates native button behavior which triggers a click event when these keys are pressed. * Checkboxhack menus will no longer toggle rapidly when holding down the space/enter keys. Bug: T291096 Change-Id: I1ea65112fa6b527f1bd9118212838298399996aa |
||
|---|---|---|
| .. | ||
| assets | ||
| lib | ||
| src | ||
| Resources.php | ||