diff --git a/src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts b/src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts index 92542a8d03f..68c3d487a41 100644 --- a/src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts +++ b/src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts @@ -549,15 +549,16 @@ registerAction2(class FocusAndSelectBreadcrumbs extends Action2 { super({ id: 'breadcrumbs.focusAndSelect', title: { - value: localize('cmd.focus', "Focus Breadcrumbs"), - original: 'Focus Breadcrumbs' + value: localize('cmd.focusAndSelect', "Focus and Select Breadcrumbs"), + original: 'Focus and Select Breadcrumbs' }, precondition: BreadcrumbsControl.CK_BreadcrumbsVisible, keybinding: { weight: KeybindingWeight.WorkbenchContrib, primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Period, when: BreadcrumbsControl.CK_BreadcrumbsPossible, - } + }, + f1: true }); } run(accessor: ServicesAccessor, ...args: any[]): void { @@ -565,12 +566,26 @@ registerAction2(class FocusAndSelectBreadcrumbs extends Action2 { } }); -KeybindingsRegistry.registerCommandAndKeybindingRule({ - id: 'breadcrumbs.focus', - weight: KeybindingWeight.WorkbenchContrib, - primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Semicolon, - when: BreadcrumbsControl.CK_BreadcrumbsPossible, - handler: accessor => focusAndSelectHandler(accessor, false) +registerAction2(class FocusBreadcrumbs extends Action2 { + constructor() { + super({ + id: 'breadcrumbs.focus', + title: { + value: localize('cmd.focus', "Focus Breadcrumbs"), + original: 'Focus Breadcrumbs' + }, + precondition: BreadcrumbsControl.CK_BreadcrumbsVisible, + keybinding: { + weight: KeybindingWeight.WorkbenchContrib, + primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Semicolon, + when: BreadcrumbsControl.CK_BreadcrumbsPossible, + }, + f1: true + }); + } + run(accessor: ServicesAccessor, ...args: any[]): void { + focusAndSelectHandler(accessor, false); + } }); // this commands is only enabled when breadcrumbs are