Skip to content

Commit bc9f257

Browse files
committed
Fixes microsoft#105152: Have the default word navigation to the left be similar to the defailt word navigation to the right
1 parent 76c817a commit bc9f257

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,7 @@ export class CursorWordStartLeft extends WordLeftCommand {
101101
inSelectionMode: false,
102102
wordNavigationType: WordNavigationType.WordStart,
103103
id: 'cursorWordStartLeft',
104-
precondition: undefined,
105-
kbOpts: {
106-
kbExpr: EditorContextKeys.textInputFocus,
107-
primary: KeyMod.CtrlCmd | KeyCode.LeftArrow,
108-
mac: { primary: KeyMod.Alt | KeyCode.LeftArrow },
109-
weight: KeybindingWeight.EditorContrib
110-
}
104+
precondition: undefined
111105
});
112106
}
113107
}
@@ -129,7 +123,13 @@ export class CursorWordLeft extends WordLeftCommand {
129123
inSelectionMode: false,
130124
wordNavigationType: WordNavigationType.WordStartFast,
131125
id: 'cursorWordLeft',
132-
precondition: undefined
126+
precondition: undefined,
127+
kbOpts: {
128+
kbExpr: EditorContextKeys.textInputFocus,
129+
primary: KeyMod.CtrlCmd | KeyCode.LeftArrow,
130+
mac: { primary: KeyMod.Alt | KeyCode.LeftArrow },
131+
weight: KeybindingWeight.EditorContrib
132+
}
133133
});
134134
}
135135
}
@@ -140,13 +140,7 @@ export class CursorWordStartLeftSelect extends WordLeftCommand {
140140
inSelectionMode: true,
141141
wordNavigationType: WordNavigationType.WordStart,
142142
id: 'cursorWordStartLeftSelect',
143-
precondition: undefined,
144-
kbOpts: {
145-
kbExpr: EditorContextKeys.textInputFocus,
146-
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.LeftArrow,
147-
mac: { primary: KeyMod.Alt | KeyMod.Shift | KeyCode.LeftArrow },
148-
weight: KeybindingWeight.EditorContrib
149-
}
143+
precondition: undefined
150144
});
151145
}
152146
}
@@ -168,7 +162,13 @@ export class CursorWordLeftSelect extends WordLeftCommand {
168162
inSelectionMode: true,
169163
wordNavigationType: WordNavigationType.WordStartFast,
170164
id: 'cursorWordLeftSelect',
171-
precondition: undefined
165+
precondition: undefined,
166+
kbOpts: {
167+
kbExpr: EditorContextKeys.textInputFocus,
168+
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.LeftArrow,
169+
mac: { primary: KeyMod.Alt | KeyMod.Shift | KeyCode.LeftArrow },
170+
weight: KeybindingWeight.EditorContrib
171+
}
172172
});
173173
}
174174
}

0 commit comments

Comments
 (0)