gecko-dev/browser/components/tabbrowser/content
Gijs Kruitbosch c9eba88f1f Bug 1920319 - add dedicated keypress handler for new tab buttons, r=tabbrowser-reviewers,dao
Right now, tabbrowser relies on browser-toolbarKeyNav.js for keyboard access to these buttons on macOS.
There's also toolkit handling for space, but not enter, in https://searchfox.org/mozilla-central/rev/9fe73403523732f57cd82d30590ecc272fb0b165/toolkit/content/widgets/button.js#27-34 .
In vertical tabs mode, browser-toolbarKeyNav does not help us as the buttons aren't in the toolbox.
On Nightly, the containers-related code in https://searchfox.org/mozilla-central/rev/9fe73403523732f57cd82d30590ecc272fb0b165/browser/components/tabbrowser/content/tabs.js#1422-1428
adds the buttons to gClickAndHoldListeners, which have their own keypress handling. This happens whenever
containers are enabled. Those are not enabled by default on non-nightly, and so we end up missing a keypress
handler in vertical tabs mode on non-Nightly on macOS.

This is all a big mess and we should probably figure out a better solution. But given this needs beta uplift,
the expedient solution seems to be a dedicated listener and making sure that only 1 listener is invoked.

Differential Revision: https://phabricator.services.mozilla.com/D224094
2024-09-30 13:15:28 +00:00
..
browser-allTabsMenu.inc.xhtml Bug 1902430 - Update strings for close duplicate tabs in tab overview menu. r=tabbrowser-reviewers,fluent-reviewers,dao,bolsson 2024-07-02 18:56:44 +00:00
browser-allTabsMenu.js Bug 1916622 - Remove the browser.tabs.tabmanager.enabled pref. r=tabbrowser-reviewers,extension-reviewers,desktop-theme-reviewers,emilio,robwu,dwalker 2024-09-05 13:37:09 +00:00
browser-ctrlTab.js
browser-fullZoom.js
tab-hover-preview.mjs Bug 1912391 - position tab preview appropriately when in vertical mode. r=tabbrowser-reviewers,dao 2024-09-09 05:06:29 +00:00
tab.js Bug 1920922 - Update hidden tab checks to account for tabs in collapsed groups. r=tabbrowser-reviewers,dwalker 2024-09-26 04:18:45 +00:00
tabbrowser.js Bug 1920922 - Update hidden tab checks to account for tabs in collapsed groups. r=tabbrowser-reviewers,dwalker 2024-09-26 04:18:45 +00:00
tabgroup.js Bug 1920666 - Make tab group line extend under the group label. r=jswinarton 2024-09-24 12:46:45 +00:00
tabs.js Bug 1920319 - add dedicated keypress handler for new tab buttons, r=tabbrowser-reviewers,dao 2024-09-30 13:15:28 +00:00