Skip to content

Commit f2ccbad

Browse files
committed
1 parent 7edc8f7 commit f2ccbad

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/vs/editor/contrib/referenceSearch/referencesWidget.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,11 @@ export class ReferenceWidget extends PeekViewWidget {
383383
});
384384
this._tree.onDidOpen(e => {
385385
const aside = (e.browserEvent instanceof MouseEvent) && (e.browserEvent.ctrlKey || e.browserEvent.metaKey || e.browserEvent.altKey);
386-
const goto = !e.browserEvent || ((e.browserEvent instanceof MouseEvent) && e.browserEvent.detail === 2);
387-
386+
let goto = !e.browserEvent || ((e.browserEvent instanceof MouseEvent) && e.browserEvent.detail === 2);
387+
if (e.browserEvent instanceof KeyboardEvent) {
388+
// todo@joh make this a command
389+
goto = true;
390+
}
388391
if (aside) {
389392
onEvent(e.elements[0], 'side');
390393
} else if (goto) {

0 commit comments

Comments
 (0)