mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
8810a3c233
Toolbar buttons are only made focusable when accessed via the keyboard. As soon as they lose focus, their focusability is removed. This is done so that clicking them doesn't focus them. Previously, this meant that if a panel opened, focus couldn't be restored to the button like it should be when the panel was closed, as the button was no longer focusable. To work around this, use the open="true" attribute set on the button when the panel opens. If this is detected when the button loses focus, focusability is not removed. Once focus is restored after the panel closes, things continue as normal. That is, when the button loses focus for some other reason, its focusability is removed. Differential Revision: https://phabricator.services.mozilla.com/D26073 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
.eslintrc.js | ||
browser_toolbarButtonKeyPress.js | ||
browser_toolbarKeyNav.js | ||
browser.ini | ||
head.js |