mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
added the key bindings for first and last selection in suggestions.
This commit is contained in:
parent
c05d427af7
commit
be5030b70c
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue