Skip to content

Commit

Permalink
fixes #80362
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Sep 5, 2019
1 parent 7edc8f7 commit f2ccbad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/vs/editor/contrib/referenceSearch/referencesWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,11 @@ 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);

let goto = !e.browserEvent || ((e.browserEvent instanceof MouseEvent) && e.browserEvent.detail === 2);
if (e.browserEvent instanceof KeyboardEvent) {
// todo@joh make this a command
goto = true;
}
if (aside) {
onEvent(e.elements[0], 'side');
} else if (goto) {
Expand Down

0 comments on commit f2ccbad

Please sign in to comment.