提交 4272facd 编写于 作者: J Johannes Rieken

fix #26368

上级 2fa0340e
......@@ -315,11 +315,11 @@ CommonEditorRegistry.registerEditorCommand(new SuggestCommand({
CommonEditorRegistry.registerEditorCommand(new SuggestCommand({
id: 'acceptSelectedSuggestionOnEnter',
precondition: ContextKeyExpr.and(SuggestContext.Visible, SuggestContext.MakesTextEdit),
precondition: SuggestContext.Visible,
handler: x => x.acceptSelectedSuggestion(),
kbOpts: {
weight: weight,
kbExpr: ContextKeyExpr.and(EditorContextKeys.textFocus, SuggestContext.AcceptSuggestionsOnEnter),
kbExpr: ContextKeyExpr.and(EditorContextKeys.textFocus, SuggestContext.AcceptSuggestionsOnEnter, SuggestContext.MakesTextEdit),
primary: KeyCode.Enter
}
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册