add mnemonic note (#168204)

fixes  #149794
This commit is contained in:
SteVen Batten 2022-12-06 11:02:49 -08:00 committed by GitHub
parent 125fd89cee
commit 8893a14941
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 10 deletions

View file

@ -17,14 +17,14 @@ export class ToggleStickyScroll extends Action2 {
id: 'editor.action.toggleStickyScroll', id: 'editor.action.toggleStickyScroll',
title: { title: {
value: localize('toggleStickyScroll', "Toggle Sticky Scroll"), value: localize('toggleStickyScroll', "Toggle Sticky Scroll"),
mnemonicTitle: localize('mitoggleStickyScroll', "&&Toggle Sticky Scroll"), mnemonicTitle: localize({ key: 'mitoggleStickyScroll', comment: ['&& denotes a mnemonic'] }, "&&Toggle Sticky Scroll"),
original: 'Toggle Sticky Scroll', original: 'Toggle Sticky Scroll',
}, },
category: Categories.View, category: Categories.View,
toggled: { toggled: {
condition: ContextKeyExpr.equals('config.editor.stickyScroll.enabled', true), condition: ContextKeyExpr.equals('config.editor.stickyScroll.enabled', true),
title: localize('stickyScroll', "Sticky Scroll"), title: localize('stickyScroll', "Sticky Scroll"),
mnemonicTitle: localize('miStickyScroll', "&&Sticky Scroll"), mnemonicTitle: localize({ key: 'miStickyScroll', comment: ['&& denotes a mnemonic'] }, "&&Sticky Scroll"),
}, },
menu: [ menu: [
{ id: MenuId.CommandPalette }, { id: MenuId.CommandPalette },

View file

@ -362,7 +362,7 @@ class ToggleSidebarVisibilityAction extends Action2 {
toggled: { toggled: {
condition: SideBarVisibleContext, condition: SideBarVisibleContext,
title: localize('primary sidebar', "Primary Side Bar"), title: localize('primary sidebar', "Primary Side Bar"),
mnemonicTitle: localize('primary sidebar mnemonic', "&&Primary Side Bar"), mnemonicTitle: localize({ key: 'primary sidebar mnemonic', comment: ['&& denotes a mnemonic'] }, "&&Primary Side Bar"),
}, },
category: Categories.View, category: Categories.View,
f1: true, f1: true,
@ -521,7 +521,7 @@ registerAction2(class extends Action2 {
id: 'workbench.action.toggleZenMode', id: 'workbench.action.toggleZenMode',
title: { title: {
value: localize('toggleZenMode', "Toggle Zen Mode"), value: localize('toggleZenMode', "Toggle Zen Mode"),
mnemonicTitle: localize('miToggleZenMode', "Zen Mode"), mnemonicTitle: localize({ key: 'miToggleZenMode', comment: ['&& denotes a mnemonic'] }, "Zen Mode"),
original: 'Toggle Zen Mode' original: 'Toggle Zen Mode'
}, },
category: Categories.View, category: Categories.View,

View file

@ -33,7 +33,7 @@ export class ToggleAuxiliaryBarAction extends Action2 {
toggled: { toggled: {
condition: AuxiliaryBarVisibleContext, condition: AuxiliaryBarVisibleContext,
title: localize('secondary sidebar', "Secondary Side Bar"), title: localize('secondary sidebar', "Secondary Side Bar"),
mnemonicTitle: localize('secondary sidebar mnemonic', "Secondary Si&&de Bar"), mnemonicTitle: localize({ key: 'secondary sidebar mnemonic', comment: ['&& denotes a mnemonic'] }, "Secondary Si&&de Bar"),
}, },
category: Categories.View, category: Categories.View,

View file

@ -504,14 +504,14 @@ registerAction2(class ToggleBreadcrumb extends Action2 {
id: 'breadcrumbs.toggle', id: 'breadcrumbs.toggle',
title: { title: {
value: localize('cmd.toggle', "Toggle Breadcrumbs"), value: localize('cmd.toggle', "Toggle Breadcrumbs"),
mnemonicTitle: localize('miBreadcrumbs', "Toggle &&Breadcrumbs"), mnemonicTitle: localize({ key: 'miBreadcrumbs', comment: ['&& denotes a mnemonic'] }, "Toggle &&Breadcrumbs"),
original: 'Toggle Breadcrumbs', original: 'Toggle Breadcrumbs',
}, },
category: Categories.View, category: Categories.View,
toggled: { toggled: {
condition: ContextKeyExpr.equals('config.breadcrumbs.enabled', true), condition: ContextKeyExpr.equals('config.breadcrumbs.enabled', true),
title: localize('cmd.toggle2', "Breadcrumbs"), title: localize('cmd.toggle2', "Breadcrumbs"),
mnemonicTitle: localize('miBreadcrumbs2', "&&Breadcrumbs") mnemonicTitle: localize({ key: 'miBreadcrumbs2', comment: ['&& denotes a mnemonic'] }, "&&Breadcrumbs")
}, },
menu: [ menu: [
{ id: MenuId.CommandPalette }, { id: MenuId.CommandPalette },

View file

@ -41,7 +41,7 @@ export class TogglePanelAction extends Action2 {
toggled: { toggled: {
condition: PanelVisibleContext, condition: PanelVisibleContext,
title: localize('toggle panel', "Panel"), title: localize('toggle panel', "Panel"),
mnemonicTitle: localize('toggle panel mnemonic', "&&Panel"), mnemonicTitle: localize({ key: 'toggle panel mnemonic', comment: ['&& denotes a mnemonic'] }, "&&Panel"),
}, },
f1: true, f1: true,
category: Categories.View, category: Categories.View,

View file

@ -121,7 +121,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
title: { title: {
value: 'Preferences', value: 'Preferences',
original: 'Preferences', original: 'Preferences',
mnemonicTitle: localize('mPreferences', "Preferences") mnemonicTitle: localize({ key: 'mPreferences', comment: ['&& denotes a mnemonic'] }, "Preferences")
}, },
when: IsMacNativeContext, when: IsMacNativeContext,
order: 9 order: 9

View file

@ -38,7 +38,7 @@ export class ShowCurrentReleaseNotesAction extends Action2 {
id: ShowCurrentReleaseNotesActionId, id: ShowCurrentReleaseNotesActionId,
title: { title: {
value: localize('showReleaseNotes', "Show Release Notes"), value: localize('showReleaseNotes', "Show Release Notes"),
mnemonicTitle: localize('mshowReleaseNotes', "Show &&Release Notes"), mnemonicTitle: localize({ key: 'mshowReleaseNotes', comment: ['&& denotes a mnemonic'] }, "Show &&Release Notes"),
original: 'Show Release Notes' original: 'Show Release Notes'
}, },
category: { value: product.nameShort, original: product.nameShort }, category: { value: product.nameShort, original: product.nameShort },