Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions src/vs/workbench/contrib/search/browser/searchActionsSymbol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import { ServicesAccessor } from '../../../../platform/instantiation/common/inst
import * as Constants from '../common/constants.js';
import { Action2, MenuId, registerAction2 } from '../../../../platform/actions/common/actions.js';
import { KeybindingWeight } from '../../../../platform/keybinding/common/keybindingsRegistry.js';
import { KeyCode, KeyMod } from '../../../../base/common/keyCodes.js';
import { KeyChord, KeyCode, KeyMod } from '../../../../base/common/keyCodes.js';
import { IsWebContext } from '../../../../platform/contextkey/common/contextkeys.js';
import { IQuickInputService } from '../../../../platform/quickinput/common/quickInput.js';

//#region Actions
Expand All @@ -27,10 +28,21 @@ registerAction2(class ShowAllSymbolsAction extends Action2 {
mnemonicTitle: nls.localize({ key: 'miGotoSymbolInWorkspace', comment: ['&& denotes a mnemonic'] }, "Go to Symbol in &&Workspace..."),
},
f1: true,
keybinding: {
weight: KeybindingWeight.WorkbenchContrib,
primary: KeyMod.CtrlCmd | KeyCode.KeyT
},
// Browsers handle Ctrl/Cmd+T (new tab). Use an alternate default on web (e.g. Codespaces).
// Avoid Ctrl+K T: it is used by notebook output collapse/expand with overlapping context.
// https://github.com/microsoft/vscode/issues/232381
keybinding: [
{
weight: KeybindingWeight.WorkbenchContrib,
primary: KeyMod.CtrlCmd | KeyCode.KeyT,
when: IsWebContext.toNegated()
},
{
weight: KeybindingWeight.WorkbenchContrib,
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyG),
when: IsWebContext
}
],
menu: {
id: MenuId.MenubarGoMenu,
group: '3_global_nav',
Expand Down