Skip to content

Commit 10ad83c

Browse files
committed
add default keybinding for toggling screen reader mode
1 parent 8720906 commit 10ad83c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/vs/editor/browser/controller/textAreaHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ export class TextAreaHandler extends ViewPart {
553553
private _getAriaLabel(options: IComputedEditorOptions): string {
554554
const accessibilitySupport = options.get(EditorOption.accessibilitySupport);
555555
if (accessibilitySupport === AccessibilitySupport.Disabled) {
556-
return nls.localize('accessibilityOffAriaLabel', "The editor is not accessible at this time. Open the quick pick with {0} and run the command: Toggle Screen Reader Accessibility Mode for a screen reader optimized experience.", platform.isMacintosh ? 'Cmd+Shift+P' : 'Ctrl+Shift+P');
556+
return nls.localize('accessibilityOffAriaLabel', "The editor is not accessible at this time. To enable screen reader optimized mode, use {0}", platform.isMacintosh ? 'Cmd+Shift+f1' : 'Ctrl+Shift+f1');
557557
}
558558
return options.get(EditorOption.ariaLabel);
559559
}

src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ class ToggleScreenReaderMode extends Action2 {
2222
id: 'editor.action.toggleScreenReaderAccessibilityMode',
2323
title: { value: nls.localize('toggleScreenReaderMode', "Toggle Screen Reader Accessibility Mode"), original: 'Toggle Screen Reader Accessibility Mode' },
2424
f1: true,
25-
keybinding: {
25+
keybinding: [{
2626
primary: KeyMod.CtrlCmd | KeyCode.KeyE,
2727
weight: KeybindingWeight.WorkbenchContrib + 10,
2828
when: accessibilityHelpIsShown
29-
}
29+
},
30+
{
31+
primary: KeyMod.CtrlCmd | KeyCode.F1 | KeyMod.Shift,
32+
weight: KeybindingWeight.WorkbenchContrib + 10,
33+
}]
3034
});
3135
}
3236

0 commit comments

Comments
 (0)