Change default search replace keyboard shortcuts again to match editor find

This commit is contained in:
Rob Lourens 2018-03-27 18:04:48 -07:00
parent 528daff5e3
commit 976d1649ce

View file

@ -131,8 +131,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
id: Constants.ReplaceActionId,
weight: KeybindingsRegistry.WEIGHT.workbenchContrib(),
when: ContextKeyExpr.and(Constants.SearchViewVisibleKey, Constants.ReplaceActiveKey, Constants.MatchFocusKey),
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Enter,
secondary: [KeyMod.Shift | KeyMod.CtrlCmd | KeyCode.KEY_1],
primary: KeyMod.Shift | KeyMod.CtrlCmd | KeyCode.KEY_1,
handler: (accessor, args: any) => {
const searchView = getSearchView(accessor.get(IViewletService), accessor.get(IPanelService));
const tree: ITree = searchView.getControl();
@ -144,7 +143,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
id: Constants.ReplaceAllInFileActionId,
weight: KeybindingsRegistry.WEIGHT.workbenchContrib(),
when: ContextKeyExpr.and(Constants.SearchViewVisibleKey, Constants.ReplaceActiveKey, Constants.FileFocusKey),
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Enter,
primary: KeyMod.Shift | KeyMod.CtrlCmd | KeyCode.KEY_1,
secondary: [KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Enter],
handler: (accessor, args: any) => {
const searchView = getSearchView(accessor.get(IViewletService), accessor.get(IPanelService));
const tree: ITree = searchView.getControl();
@ -156,7 +156,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
id: Constants.ReplaceAllInFolderActionId,
weight: KeybindingsRegistry.WEIGHT.workbenchContrib(),
when: ContextKeyExpr.and(Constants.SearchViewVisibleKey, Constants.ReplaceActiveKey, Constants.FolderFocusKey),
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Enter,
primary: KeyMod.Shift | KeyMod.CtrlCmd | KeyCode.KEY_1,
secondary: [KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Enter],
handler: (accessor, args: any) => {
const searchView = getSearchView(accessor.get(IViewletService), accessor.get(IPanelService));
const tree: ITree = searchView.getControl();