refix keybind

This commit is contained in:
SteVen Batten 2020-05-27 12:30:03 -07:00
parent 1ffbc7843a
commit 61b03f3af8

View file

@ -49,7 +49,7 @@ import { RunOnceScheduler } from 'vs/base/common/async';
import { DomScrollableElement } from 'vs/base/browser/ui/scrollbar/scrollableElement'; import { DomScrollableElement } from 'vs/base/browser/ui/scrollbar/scrollableElement';
import { ScrollbarVisibility } from 'vs/base/common/scrollable'; import { ScrollbarVisibility } from 'vs/base/common/scrollable';
import { URI } from 'vs/base/common/uri'; import { URI } from 'vs/base/common/uri';
import { KeyMod, KeyCode } from 'vs/base/common/keyCodes'; import { KeyMod, KeyCode, KeyChord } from 'vs/base/common/keyCodes';
import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry'; import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry';
export interface IPaneColors extends IColorMapping { export interface IPaneColors extends IColorMapping {
@ -1580,8 +1580,8 @@ registerAction2(
id: 'views.moveViewUp', id: 'views.moveViewUp',
title: nls.localize('viewMoveUp', "Move View Up"), title: nls.localize('viewMoveUp', "Move View Up"),
keybinding: { keybinding: {
primary: KeyMod.Shift + KeyMod.Alt + KeyCode.UpArrow, primary: KeyChord(KeyMod.CtrlCmd + KeyCode.KEY_K, KeyCode.UpArrow),
weight: KeybindingWeight.WorkbenchContrib, weight: KeybindingWeight.WorkbenchContrib + 1,
when: FocusedViewContext.notEqualsTo('') when: FocusedViewContext.notEqualsTo('')
} }
}, -1); }, -1);
@ -1596,8 +1596,8 @@ registerAction2(
id: 'views.moveViewLeft', id: 'views.moveViewLeft',
title: nls.localize('viewMoveLeft', "Move View Left"), title: nls.localize('viewMoveLeft', "Move View Left"),
keybinding: { keybinding: {
primary: KeyMod.Shift + KeyMod.Alt + KeyCode.LeftArrow, primary: KeyChord(KeyMod.CtrlCmd + KeyCode.KEY_K, KeyCode.LeftArrow),
weight: KeybindingWeight.WorkbenchContrib, weight: KeybindingWeight.WorkbenchContrib + 1,
when: FocusedViewContext.notEqualsTo('') when: FocusedViewContext.notEqualsTo('')
} }
}, -1); }, -1);
@ -1612,8 +1612,8 @@ registerAction2(
id: 'views.moveViewDown', id: 'views.moveViewDown',
title: nls.localize('viewMoveDown', "Move View Down"), title: nls.localize('viewMoveDown', "Move View Down"),
keybinding: { keybinding: {
primary: KeyMod.Shift + KeyMod.Alt + KeyCode.DownArrow, primary: KeyChord(KeyMod.CtrlCmd + KeyCode.KEY_K, KeyCode.DownArrow),
weight: KeybindingWeight.WorkbenchContrib, weight: KeybindingWeight.WorkbenchContrib + 1,
when: FocusedViewContext.notEqualsTo('') when: FocusedViewContext.notEqualsTo('')
} }
}, 1); }, 1);
@ -1628,8 +1628,8 @@ registerAction2(
id: 'views.moveViewRight', id: 'views.moveViewRight',
title: nls.localize('viewMoveRight', "Move View Right"), title: nls.localize('viewMoveRight', "Move View Right"),
keybinding: { keybinding: {
primary: KeyMod.Shift + KeyMod.Alt + KeyCode.RightArrow, primary: KeyChord(KeyMod.CtrlCmd + KeyCode.KEY_K, KeyCode.RightArrow),
weight: KeybindingWeight.WorkbenchContrib, weight: KeybindingWeight.WorkbenchContrib + 1,
when: FocusedViewContext.notEqualsTo('') when: FocusedViewContext.notEqualsTo('')
} }
}, 1); }, 1);