Steps to repeat.
- Navigate to en.wikipedia.org
- Open developer console.
- Paste: mw.loader.load('oojs-ui')
- Paste: $('body').append((new OO.ui.ButtonSelectWidget({items: [new OO.ui.ButtonOptionWidget({label: "foo", accessKey: "n"}), new OO.ui.ButtonOptionWidget({label: "bar", accessKey: "m"})]})).$element)
- Scroll to the bottom of the page and observe "foo" and "bar" button select group
- Press [ALT]+"n" and [ALT]+"m" a few times.
Expected:
Buttons would be selected appropriately when accessKeys are pressed
Actual:
Buttons do nothing!
Note that this bug might be related to https://phabricator.wikimedia.org/T98684