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

This commit is contained in:
Pradeep Murugesan 2018-03-15 17:00:33 +01:00
parent c05d427af7
commit be5030b70c

View file

@ -406,7 +406,12 @@ registerEditorCommand(new SuggestCommand({
registerEditorCommand(new SuggestCommand({
id: 'selectLastSuggestion',
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({
@ -437,7 +442,12 @@ registerEditorCommand(new SuggestCommand({
registerEditorCommand(new SuggestCommand({
id: 'selectFirstSuggestion',
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({