Steps to replicate the issue (include links if applicable):
- Visit https://doc.wikimedia.org/codex/main/components/demos/toggle-button.html
- Focus on the toggle button
- Hold down the enter key
What happens?:
- The toggle button will toggle between on and off over and over, until you release the enter key
Note that once this patch is merged, the toggling will still happen, but you mostly won't see it because you'll be seeing the active states which are very similar. This is what currently happens in OOUI.
What should have happened instead?:
- The toggle button's active state should display while you're holding down enter, then the opposite state should appear when you release the enter key
Software version (skip for WMF-hosted wikis like Wikipedia): Codex main, OOUI
Other information (browser name/version, screenshots, etc.):