Skip to content

Commit

Permalink
Merge pull request #45881 from pradeepmurugesan/home-end-keys-in-sugg…
Browse files Browse the repository at this point in the history
…estion

added the key bindings for first and last selection in suggestions.
  • Loading branch information
jrieken authored Mar 16, 2018
2 parents 14aa73c + be5030b commit 234defc
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/vs/editor/contrib/suggest/suggestController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 234defc

Please sign in to comment.