Skip to content

Commit

Permalink
Let references widget navigate on KeyboardEvent
Browse files Browse the repository at this point in the history
Fix #78521
  • Loading branch information
roblourens committed Aug 5, 2019
1 parent 0cb7c0f commit 3608c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/contrib/referenceSearch/referencesWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ export class ReferenceWidget extends PeekViewWidget {
});
this._tree.onDidOpen(e => {
const aside = (e.browserEvent instanceof MouseEvent) && (e.browserEvent.ctrlKey || e.browserEvent.metaKey || e.browserEvent.altKey);
const goto = !e.browserEvent || ((e.browserEvent instanceof MouseEvent) && e.browserEvent.detail === 2);
const goto = !e.browserEvent || (e.browserEvent instanceof KeyboardEvent) || ((e.browserEvent instanceof MouseEvent) && e.browserEvent.detail === 2);

if (aside) {
onEvent(e.elements[0], 'side');
Expand Down

0 comments on commit 3608c39

Please sign in to comment.