Closed Bug 1652641 Opened 4 years ago Closed 4 years ago

tab context menu when multiple tabs are selected has menu items with conflicting accelerator keys

Categories

(Firefox :: Tabbed Browser, defect, P2)

defect

Tracking

()

VERIFIED FIXED
Firefox 80
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- wontfix
firefox78 --- wontfix
firefox79 --- wontfix
firefox80 --- verified

People

(Reporter: heycam, Assigned: Gijs)

References

(Regression)

Details

(Keywords: access, regression)

Attachments

(1 file)

If you have multiple tabs selected, both the "Select All Tabs" and the "Close Tabs" menu items have "s" as their accelerator key. Can the "Close Tabs" menu item be changed to use "c", to be consistent with the "Close Tab" menu item when only one tab is selected?

It's "S" presumably because it used to be Close Selected Tabs, which was changed to Close Tabs in bug 1496091. It's also two items, one of which is hidden, I'm not sure we can use the same accesskey without tweaking it in the code that switches between the items. https://searchfox.org/mozilla-central/rev/89814940895946b48b4c04c702efd2c676ec8e7e/browser/base/content/tabbrowser.js#6590

BTW, I'm not sure the change in bug 1496091 was the right one, especially after bug 887515, and considering languages without plural. Because in a language without plural, there now is "Close multiple tab" and "Close tab", the latter of which is the one that closes the multiple selected tabs... Maybe an additional "Close selected tabs" item under the "Close multiple tabs" menu would help.

Or maybe in languages without plural, the translation should be that of "Close selected tabs" rather than of "Close tabs", so that it differs from the singular case.

Gijs, since Jared is on PTO, do you have thoughts on this?

Severity: -- → S3
Flags: needinfo?(gijskruitbosch+bugs)
Keywords: access, regression
Priority: -- → P2
Regressed by: 887515
Has Regression Range: --- → yes

(In reply to Mike Hommey [:glandium] from comment #2)

BTW, I'm not sure the change in bug 1496091 was the right one, especially after bug 887515, and considering languages without plural. Because in a language without plural, there now is "Close multiple tab" and "Close tab", the latter of which is the one that closes the multiple selected tabs... Maybe an additional "Close selected tabs" item under the "Close multiple tabs" menu would help.

Please file a separate bug if you think there need to be different items in the submenu, or re-labeling of items (perhaps the submenu should be labeled "Close other tabs", to make it clear what the difference is with the selected tab(s), and then the submenu item to close all but the selected tab should be called "Close all other tabs" vs. the other close to the left / close to the right items?)

Either way it seems like that's not really part of the same issue raised in comment #0 (though related), which is clearly defined and can be solved irrespective of what happens to that submenu.

Flags: needinfo?(mh+mozilla)
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Flags: needinfo?(gijskruitbosch+bugs)
Attachment #9163752 - Attachment description: Bug 1652641 - use consistent access key for closing tabs, r?dao → Bug 1652641 - use consistent access key for tab context menu's items to close 1 tab or selected tabs, r?dao
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/703fa1371dd4
use consistent access key for tab context menu's items to close 1 tab or selected tabs, r=dao,fluent-reviewers,flod
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/f0ed5585b6ad
use consistent access key for tab context menu's items to close 1 tab or selected tabs, r=dao,fluent-reviewers,flod
Flags: needinfo?(mh+mozilla)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 80
Flags: needinfo?(gijskruitbosch+bugs)
Flags: qe-verify+

Verified fixed on Windows 10 x64 and Ubuntu 18.04 using Firefox 80 Beta 6 (buildID: 20200807195315): "Selected All Tabs" has "s" as accelerator key and "Close Tabs" has "c" as accelerator key.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: