Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 5138b7b

Browse files
committed
Bug 1434888 - set accessibility panel command key to Shift + F10. r=gl
MozReview-Commit-ID: HkL5dDfo0p9 Differential Revision: https://phabricator.services.mozilla.com/D14095 --HG-- extra : moz-landing-system : lando
1 parent 4c9372b commit 5138b7b

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

devtools/client/definitions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,8 @@ Tools.accessibility = {
412412
label: l10n("accessibility.label"),
413413
panelLabel: l10n("accessibility.panelLabel"),
414414
get tooltip() {
415-
return l10n("accessibility.tooltip2");
415+
return l10n("accessibility.tooltip3",
416+
"Shift+" + functionkey(l10n("accessibility.commandkey")));
416417
},
417418
inMenu: true,
418419

devtools/client/locales/en-US/startup.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,11 @@ accessibility.panelLabel=Accessibility Panel
262262
# Used for the menuitem in the tool menu
263263
accessibility.accesskey=y
264264

265-
# LOCALIZATION NOTE (accessibility.tooltip2):
265+
# LOCALIZATION NOTE (accessibility.tooltip3):
266266
# This string is displayed in the tooltip of the tab when the Accessibility is
267267
# displayed inside the developer tools window.
268268
# Keyboard shortcut for Accessibility panel will be shown inside the brackets.
269-
accessibility.tooltip2=Accessibility
269+
accessibility.tooltip3=Accessibility (%S)
270270

271271
# LOCALIZATION NOTE (application.label):
272272
# This string is displayed in the title of the tab when the Application panel

devtools/startup/devtools-startup.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ XPCOMUtils.defineLazyGetter(this, "KeyShortcuts", function() {
170170
shortcut: KeyShortcutsBundle.GetStringFromName("dom.commandkey"),
171171
modifiers,
172172
},
173+
// Key for opening the Accessibility Panel
174+
{
175+
toolId: "accessibility",
176+
shortcut: KeyShortcutsBundle.GetStringFromName("accessibility.commandkey"),
177+
modifiers: "shift",
178+
},
173179
];
174180

175181
if (isMac) {

devtools/startup/locales/en-US/key-shortcuts.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,7 @@ storage.commandkey=VK_F9
6161
# LOCALIZATION NOTE (dom.commandkey):
6262
# Key pressed to open a toolbox with the DOM panel selected
6363
dom.commandkey=W
64+
65+
# LOCALIZATION NOTE (accessibility.commandkey):
66+
# Key pressed to open a toolbox with the accessibility panel selected
67+
accessibility.commandkey=VK_F10

0 commit comments

Comments
 (0)