mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-28 05:37:48 +01:00
use diff't open detected link keybinding when in accessible view
This commit is contained in:
+7
-2
@@ -114,11 +114,16 @@ registerActiveInstanceAction({
|
||||
f1: true,
|
||||
category,
|
||||
precondition: TerminalContextKeys.terminalHasBeenCreated,
|
||||
keybinding: {
|
||||
keybinding: [{
|
||||
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyO,
|
||||
weight: KeybindingWeight.WorkbenchContrib + 1,
|
||||
when: ContextKeyExpr.or(TerminalContextKeys.focus, ContextKeyExpr.and(accessibleViewIsShown, ContextKeyExpr.equals(accessibleViewCurrentProviderId.key, AccessibleViewProviderId.Terminal)))
|
||||
when: TerminalContextKeys.focus
|
||||
}, {
|
||||
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyG,
|
||||
weight: KeybindingWeight.WorkbenchContrib + 1,
|
||||
when: ContextKeyExpr.and(accessibleViewIsShown, ContextKeyExpr.equals(accessibleViewCurrentProviderId.key, AccessibleViewProviderId.Terminal))
|
||||
},
|
||||
],
|
||||
run: (activeInstance) => TerminalLinkContribution.get(activeInstance)?.showLinkQuickpick()
|
||||
});
|
||||
registerActiveInstanceAction({
|
||||
|
||||
Reference in New Issue
Block a user