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
This commit is contained in:
Yura Zenevich 2018-12-10 20:43:49 +00:00
Родитель 4c9372bcb0
Коммит 5138b7b9c3
4 изменённых файлов: 14 добавлений и 3 удалений

Просмотреть файл

@ -412,7 +412,8 @@ Tools.accessibility = {
label: l10n("accessibility.label"),
panelLabel: l10n("accessibility.panelLabel"),
get tooltip() {
return l10n("accessibility.tooltip2");
return l10n("accessibility.tooltip3",
"Shift+" + functionkey(l10n("accessibility.commandkey")));
},
inMenu: true,

Просмотреть файл

@ -262,11 +262,11 @@ accessibility.panelLabel=Accessibility Panel
# Used for the menuitem in the tool menu
accessibility.accesskey=y
# LOCALIZATION NOTE (accessibility.tooltip2):
# LOCALIZATION NOTE (accessibility.tooltip3):
# This string is displayed in the tooltip of the tab when the Accessibility is
# displayed inside the developer tools window.
# Keyboard shortcut for Accessibility panel will be shown inside the brackets.
accessibility.tooltip2=Accessibility
accessibility.tooltip3=Accessibility (%S)
# LOCALIZATION NOTE (application.label):
# This string is displayed in the title of the tab when the Application panel

Просмотреть файл

@ -170,6 +170,12 @@ XPCOMUtils.defineLazyGetter(this, "KeyShortcuts", function() {
shortcut: KeyShortcutsBundle.GetStringFromName("dom.commandkey"),
modifiers,
},
// Key for opening the Accessibility Panel
{
toolId: "accessibility",
shortcut: KeyShortcutsBundle.GetStringFromName("accessibility.commandkey"),
modifiers: "shift",
},
];
if (isMac) {

Просмотреть файл

@ -61,3 +61,7 @@ storage.commandkey=VK_F9
# LOCALIZATION NOTE (dom.commandkey):
# Key pressed to open a toolbox with the DOM panel selected
dom.commandkey=W
# LOCALIZATION NOTE (accessibility.commandkey):
# Key pressed to open a toolbox with the accessibility panel selected
accessibility.commandkey=VK_F10