mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Change default search replace keyboard shortcuts again to match editor find
This commit is contained in:
parent
528daff5e3
commit
976d1649ce
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue