提交 7601718c 编写于 作者: J Johannes Rieken

Use editor base weight when contributing peek commands, fixes...

Use editor base weight when contributing peek commands, fixes https://github.com/microsoft/vscode/issues/109727#issuecomment-720986472
上级 82ff9800
......@@ -367,7 +367,7 @@ KeybindingsRegistry.registerKeybindingRule({
});
KeybindingsRegistry.registerKeybindingRule({
id: 'closeReferenceSearch',
weight: KeybindingWeight.WorkbenchContrib + 50,
weight: KeybindingWeight.EditorContrib + 50,
primary: KeyCode.Escape,
secondary: [KeyMod.Shift | KeyCode.Escape],
when: ContextKeyExpr.and(ctxReferenceSearchVisible, ContextKeyExpr.not('config.editor.stablePeek'))
......@@ -376,7 +376,7 @@ KeybindingsRegistry.registerKeybindingRule({
KeybindingsRegistry.registerCommandAndKeybindingRule({
id: 'revealReference',
weight: KeybindingWeight.WorkbenchContrib,
weight: KeybindingWeight.EditorContrib,
primary: KeyCode.Enter,
mac: {
primary: KeyCode.Enter,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册