Skip to content

Commit 0e06e43

Browse files
authored
Merge pull request microsoft#184641 from microsoft/merogge/editor-h
use `AccessibleView` for editor accessibility help menu
2 parents 49535d6 + e5a9e63 commit 0e06e43

File tree

9 files changed

+142
-460
lines changed

9 files changed

+142
-460
lines changed

src/vs/editor/common/standaloneStrings.ts

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,22 @@
66
import * as nls from 'vs/nls';
77

88
export namespace AccessibilityHelpNLS {
9-
export const noSelection = nls.localize("noSelection", "No selection");
10-
export const singleSelectionRange = nls.localize("singleSelectionRange", "Line {0}, Column {1} ({2} selected)");
11-
export const singleSelection = nls.localize("singleSelection", "Line {0}, Column {1}");
12-
export const multiSelectionRange = nls.localize("multiSelectionRange", "{0} selections ({1} characters selected)");
13-
export const multiSelection = nls.localize("multiSelection", "{0} selections");
14-
export const emergencyConfOn = nls.localize("emergencyConfOn", "Now changing the setting `accessibilitySupport` to 'on'.");
9+
export const accessibilityHelpTitle = nls.localize('accessibilityHelpTitle', "Accessibility Help");
1510
export const openingDocs = nls.localize("openingDocs", "Now opening the Editor Accessibility documentation page.");
16-
export const readonlyDiffEditor = nls.localize("readonlyDiffEditor", " in a read-only pane of a diff editor.");
17-
export const editableDiffEditor = nls.localize("editableDiffEditor", " in a pane of a diff editor.");
18-
export const readonlyEditor = nls.localize("readonlyEditor", " in a read-only code editor");
19-
export const editableEditor = nls.localize("editableEditor", " in a code editor");
11+
export const readonlyDiffEditor = nls.localize("readonlyDiffEditor", "You are in a read-only pane of a diff editor.");
12+
export const editableDiffEditor = nls.localize("editableDiffEditor", "You are in a pane of a diff editor.");
13+
export const readonlyEditor = nls.localize("readonlyEditor", "You are in a read-only code editor");
14+
export const editableEditor = nls.localize("editableEditor", "You are in a code editor");
2015
export const changeConfigToOnMac = nls.localize("changeConfigToOnMac", "To configure the editor to be optimized for usage with a Screen Reader press Command+E now.");
2116
export const changeConfigToOnWinLinux = nls.localize("changeConfigToOnWinLinux", "To configure the editor to be optimized for usage with a Screen Reader press Control+E now.");
2217
export const auto_on = nls.localize("auto_on", "The editor is configured to be optimized for usage with a Screen Reader.");
23-
export const auto_off = nls.localize("auto_off", "The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time.");
18+
export const auto_off = nls.localize("auto_off", "The editor is configured to never be optimized for usage with a Screen Reader");
2419
export const tabFocusModeOnMsg = nls.localize("tabFocusModeOnMsg", "Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}.");
2520
export const tabFocusModeOnMsgNoKb = nls.localize("tabFocusModeOnMsgNoKb", "Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding.");
2621
export const tabFocusModeOffMsg = nls.localize("tabFocusModeOffMsg", "Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}.");
2722
export const tabFocusModeOffMsgNoKb = nls.localize("tabFocusModeOffMsgNoKb", "Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding.");
28-
export const openDocMac = nls.localize("openDocMac", "Press Command+H now to open a browser window with more information related to editor accessibility.");
29-
export const openDocWinLinux = nls.localize("openDocWinLinux", "Press Control+H now to open a browser window with more information related to editor accessibility.");
30-
export const outroMsg = nls.localize("outroMsg", "You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape.");
23+
export const openDoc = nls.localize("openDoc", "Press H now to open a browser window with more information related to editor accessibility.");
3124
export const showAccessibilityHelpAction = nls.localize("showAccessibilityHelpAction", "Show Accessibility Help");
32-
export const accessibilityHelpTitle = nls.localize('accessibilityHelpTitle', "Accessibility Help");
3325
}
3426

3527
export namespace InspectTokensNLS {

src/vs/editor/editor.main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import 'vs/editor/editor.all';
7-
import 'vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp';
87
import 'vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard';
98
import 'vs/editor/standalone/browser/inspectTokens/inspectTokens';
109
import 'vs/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess';

src/vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp.css

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)