mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-04-01 01:20:31 -04:00
Revert "Revert "fix ctrl+tab keybinding"" (#9121)
This reverts commit 99af31fa1f.
This commit is contained in:
@@ -426,10 +426,8 @@ registry.registerWorkbenchAction(SyncActionDescriptor.create(EditorLayoutTwoRows
|
|||||||
registry.registerWorkbenchAction(SyncActionDescriptor.create(EditorLayoutTwoColumnsBottomAction, EditorLayoutTwoColumnsBottomAction.ID, EditorLayoutTwoColumnsBottomAction.LABEL), 'View: Two Columns Bottom Editor Layout', category);
|
registry.registerWorkbenchAction(SyncActionDescriptor.create(EditorLayoutTwoColumnsBottomAction, EditorLayoutTwoColumnsBottomAction.ID, EditorLayoutTwoColumnsBottomAction.LABEL), 'View: Two Columns Bottom Editor Layout', category);
|
||||||
|
|
||||||
// Register Quick Editor Actions including built in quick navigate support for some
|
// Register Quick Editor Actions including built in quick navigate support for some
|
||||||
const quickOpenNextRecentlyUsedEditorInGroupKeybinding = { primary: KeyMod.CtrlCmd | KeyCode.Tab, mac: { primary: KeyMod.WinCtrl | KeyCode.Tab } };
|
|
||||||
const quickOpenPreviousRecentlyUsedEditorInGroupKeybinding = { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Tab, mac: { primary: KeyMod.WinCtrl | KeyMod.Shift | KeyCode.Tab } };
|
|
||||||
registry.registerWorkbenchAction(SyncActionDescriptor.create(QuickOpenPreviousRecentlyUsedEditorAction, QuickOpenPreviousRecentlyUsedEditorAction.ID, QuickOpenPreviousRecentlyUsedEditorAction.LABEL), 'View: Quick Open Previous Recently Used Editor', category);
|
registry.registerWorkbenchAction(SyncActionDescriptor.create(QuickOpenPreviousRecentlyUsedEditorAction, QuickOpenPreviousRecentlyUsedEditorAction.ID, QuickOpenPreviousRecentlyUsedEditorAction.LABEL), 'View: Quick Open Previous Recently Used Editor', category);
|
||||||
registry.registerWorkbenchAction(SyncActionDescriptor.create(QuickOpenPreviousRecentlyUsedEditorInGroupAction, QuickOpenPreviousRecentlyUsedEditorInGroupAction.ID, QuickOpenPreviousRecentlyUsedEditorInGroupAction.LABEL, quickOpenPreviousRecentlyUsedEditorInGroupKeybinding), 'View: Quick Open Previous Recently Used Editor in Group', category);
|
registry.registerWorkbenchAction(SyncActionDescriptor.create(QuickOpenPreviousRecentlyUsedEditorInGroupAction, QuickOpenPreviousRecentlyUsedEditorInGroupAction.ID, QuickOpenPreviousRecentlyUsedEditorInGroupAction.LABEL, { primary: KeyMod.CtrlCmd | KeyCode.Tab, mac: { primary: KeyMod.WinCtrl | KeyCode.Tab } }), 'View: Quick Open Previous Recently Used Editor in Group', category);
|
||||||
registry.registerWorkbenchAction(SyncActionDescriptor.create(QuickOpenPreviousEditorFromHistoryAction, QuickOpenPreviousEditorFromHistoryAction.ID, QuickOpenPreviousEditorFromHistoryAction.LABEL), 'Quick Open Previous Editor from History');
|
registry.registerWorkbenchAction(SyncActionDescriptor.create(QuickOpenPreviousEditorFromHistoryAction, QuickOpenPreviousEditorFromHistoryAction.ID, QuickOpenPreviousEditorFromHistoryAction.LABEL), 'Quick Open Previous Editor from History');
|
||||||
|
|
||||||
const quickOpenNavigateNextInEditorPickerId = 'workbench.action.quickOpenNavigateNextInEditorPicker';
|
const quickOpenNavigateNextInEditorPickerId = 'workbench.action.quickOpenNavigateNextInEditorPicker';
|
||||||
@@ -438,8 +436,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|||||||
weight: KeybindingWeight.WorkbenchContrib + 50,
|
weight: KeybindingWeight.WorkbenchContrib + 50,
|
||||||
handler: getQuickNavigateHandler(quickOpenNavigateNextInEditorPickerId, true),
|
handler: getQuickNavigateHandler(quickOpenNavigateNextInEditorPickerId, true),
|
||||||
when: editorPickerContext,
|
when: editorPickerContext,
|
||||||
primary: quickOpenNextRecentlyUsedEditorInGroupKeybinding.primary,
|
primary: KeyMod.CtrlCmd | KeyCode.Tab,
|
||||||
mac: quickOpenNextRecentlyUsedEditorInGroupKeybinding.mac
|
mac: { primary: KeyMod.WinCtrl | KeyCode.Tab }
|
||||||
});
|
});
|
||||||
|
|
||||||
const quickOpenNavigatePreviousInEditorPickerId = 'workbench.action.quickOpenNavigatePreviousInEditorPicker';
|
const quickOpenNavigatePreviousInEditorPickerId = 'workbench.action.quickOpenNavigatePreviousInEditorPicker';
|
||||||
@@ -448,8 +446,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|||||||
weight: KeybindingWeight.WorkbenchContrib + 50,
|
weight: KeybindingWeight.WorkbenchContrib + 50,
|
||||||
handler: getQuickNavigateHandler(quickOpenNavigatePreviousInEditorPickerId, false),
|
handler: getQuickNavigateHandler(quickOpenNavigatePreviousInEditorPickerId, false),
|
||||||
when: editorPickerContext,
|
when: editorPickerContext,
|
||||||
primary: quickOpenPreviousRecentlyUsedEditorInGroupKeybinding.primary,
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Tab,
|
||||||
mac: quickOpenPreviousRecentlyUsedEditorInGroupKeybinding.mac
|
mac: { primary: KeyMod.WinCtrl | KeyMod.Shift | KeyCode.Tab }
|
||||||
});
|
});
|
||||||
|
|
||||||
// Editor Commands
|
// Editor Commands
|
||||||
|
|||||||
Reference in New Issue
Block a user