Skip to content

Commit 5bfd23c

Browse files
committed
Accessibility navigation commands should only be enabled on windows since they are tuned to what NVDA expects
fixes microsoft#87665
1 parent 5c928df commit 5bfd23c

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

src/vs/editor/contrib/wordOperations/wordOperations.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ export class CursorWordLeftSelect extends WordLeftCommand {
172172
}
173173
}
174174

175+
// Accessibility navigation commands should only be enabled on windows since they are tuned to what NVDA expects
175176
export class CursorWordAccessibilityLeft extends WordLeftCommand {
176177
constructor() {
177178
super({
@@ -181,8 +182,7 @@ export class CursorWordAccessibilityLeft extends WordLeftCommand {
181182
precondition: undefined,
182183
kbOpts: {
183184
kbExpr: ContextKeyExpr.and(EditorContextKeys.textInputFocus, CONTEXT_ACCESSIBILITY_MODE_ENABLED),
184-
primary: KeyMod.CtrlCmd | KeyCode.LeftArrow,
185-
mac: { primary: KeyMod.Alt | KeyCode.LeftArrow },
185+
win: { primary: KeyMod.CtrlCmd | KeyCode.LeftArrow },
186186
weight: KeybindingWeight.EditorContrib + 1
187187
}
188188
});
@@ -202,8 +202,7 @@ export class CursorWordAccessibilityLeftSelect extends WordLeftCommand {
202202
precondition: undefined,
203203
kbOpts: {
204204
kbExpr: ContextKeyExpr.and(EditorContextKeys.textInputFocus, CONTEXT_ACCESSIBILITY_MODE_ENABLED),
205-
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.LeftArrow,
206-
mac: { primary: KeyMod.Alt | KeyMod.Shift | KeyCode.LeftArrow },
205+
win: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.LeftArrow },
207206
weight: KeybindingWeight.EditorContrib + 1
208207
}
209208
});
@@ -301,8 +300,7 @@ export class CursorWordAccessibilityRight extends WordRightCommand {
301300
precondition: undefined,
302301
kbOpts: {
303302
kbExpr: ContextKeyExpr.and(EditorContextKeys.textInputFocus, CONTEXT_ACCESSIBILITY_MODE_ENABLED),
304-
primary: KeyMod.CtrlCmd | KeyCode.RightArrow,
305-
mac: { primary: KeyMod.Alt | KeyCode.RightArrow },
303+
win: { primary: KeyMod.CtrlCmd | KeyCode.RightArrow },
306304
weight: KeybindingWeight.EditorContrib + 1
307305
}
308306
});
@@ -322,8 +320,7 @@ export class CursorWordAccessibilityRightSelect extends WordRightCommand {
322320
precondition: undefined,
323321
kbOpts: {
324322
kbExpr: ContextKeyExpr.and(EditorContextKeys.textInputFocus, CONTEXT_ACCESSIBILITY_MODE_ENABLED),
325-
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.RightArrow,
326-
mac: { primary: KeyMod.Alt | KeyMod.Shift | KeyCode.RightArrow },
323+
win: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.RightArrow },
327324
weight: KeybindingWeight.EditorContrib + 1
328325
}
329326
});

0 commit comments

Comments
 (0)