Skip to content

Commit 7afc799

Browse files
authored
Merge pull request microsoft#191519 from microsoft/merogge/tab-shift
rm `Shift+tab` as keybinding for opening terminal accessible buffer
2 parents 07a6890 + 0edfa88 commit 7afc799

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminal.accessibility.contribution.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ registerTerminalAction({
116116
precondition: ContextKeyExpr.or(TerminalContextKeys.processSupported, TerminalContextKeys.terminalHasBeenCreated),
117117
keybinding: [
118118
{
119-
primary: KeyMod.Shift | KeyCode.Tab,
120-
secondary: [KeyMod.CtrlCmd | KeyCode.UpArrow, KeyMod.Alt | KeyCode.F2],
119+
primary: KeyMod.Alt | KeyCode.F2,
120+
secondary: [KeyMod.CtrlCmd | KeyCode.UpArrow],
121121
weight: KeybindingWeight.WorkbenchContrib,
122122
when: ContextKeyExpr.and(CONTEXT_ACCESSIBILITY_MODE_ENABLED, TerminalContextKeys.focus, ContextKeyExpr.or(terminalTabFocusModeContextKey, TerminalContextKeys.accessibleBufferFocus.negate()))
123123
}

src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBuffer.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,6 @@ export class AccessibleBufferWidget extends TerminalAccessibleWidget {
6262
this.element.ariaRoleDescription = localize('terminal.integrated.accessibleBuffer', 'Terminal buffer');
6363
_instance.onDidRequestFocus(() => this.hide(true));
6464
this.updateEditor();
65-
this.add(this.editorWidget.onDidFocusEditorText(async () => {
66-
if (this.element.classList.contains(ClassName.Active)) {
67-
// the user has focused the editor via mouse or
68-
// Go to Command was run so we've already updated the editor
69-
return;
70-
}
71-
// if the editor is focused via tab, we need to update the model
72-
// and show it
73-
this.registerListeners();
74-
await this.updateEditor();
75-
this.element.classList.add(ClassName.Active);
76-
}));
7765
// xterm's initial layout call has already happened
7866
this.layout();
7967
}

0 commit comments

Comments
 (0)