提交 be5030b7 编写于 作者: P Pradeep Murugesan

added the key bindings for first and last selection in suggestions.

上级 c05d427a
...@@ -406,7 +406,12 @@ registerEditorCommand(new SuggestCommand({ ...@@ -406,7 +406,12 @@ registerEditorCommand(new SuggestCommand({
registerEditorCommand(new SuggestCommand({ registerEditorCommand(new SuggestCommand({
id: 'selectLastSuggestion', id: 'selectLastSuggestion',
precondition: ContextKeyExpr.and(SuggestContext.Visible, SuggestContext.MultipleSuggestions), precondition: ContextKeyExpr.and(SuggestContext.Visible, SuggestContext.MultipleSuggestions),
handler: c => c.selectLastSuggestion() handler: c => c.selectLastSuggestion(),
kbOpts: {
weight: weight,
kbExpr: EditorContextKeys.textFocus,
primary: KeyCode.End
}
})); }));
registerEditorCommand(new SuggestCommand({ registerEditorCommand(new SuggestCommand({
...@@ -437,7 +442,12 @@ registerEditorCommand(new SuggestCommand({ ...@@ -437,7 +442,12 @@ registerEditorCommand(new SuggestCommand({
registerEditorCommand(new SuggestCommand({ registerEditorCommand(new SuggestCommand({
id: 'selectFirstSuggestion', id: 'selectFirstSuggestion',
precondition: ContextKeyExpr.and(SuggestContext.Visible, SuggestContext.MultipleSuggestions), precondition: ContextKeyExpr.and(SuggestContext.Visible, SuggestContext.MultipleSuggestions),
handler: c => c.selectFirstSuggestion() handler: c => c.selectFirstSuggestion(),
kbOpts: {
weight: weight,
kbExpr: EditorContextKeys.textFocus,
primary: KeyCode.Home
}
})); }));
registerEditorCommand(new SuggestCommand({ registerEditorCommand(new SuggestCommand({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册