mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
Fixes #42551
This commit is contained in:
@@ -277,9 +277,8 @@ export class IssueReporter extends Disposable {
|
||||
for (let i = 0; i < numResultsToDisplay; i++) {
|
||||
const link = $('a', { href: items[i].html_url });
|
||||
link.textContent = items[i].title;
|
||||
link.addEventListener('click', (event) => {
|
||||
shell.openExternal((<HTMLAnchorElement>event.target).href);
|
||||
});
|
||||
link.addEventListener('click', openLink);
|
||||
link.addEventListener('auxclick', openLink);
|
||||
|
||||
const item = $('li', {}, link);
|
||||
issues.appendChild(item);
|
||||
@@ -496,3 +495,12 @@ function hide(el) {
|
||||
function show(el) {
|
||||
el.classList.remove('hidden');
|
||||
}
|
||||
|
||||
function openLink(event: MouseEvent) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
// Exclude right click
|
||||
if (event.which < 3) {
|
||||
shell.openExternal((<HTMLAnchorElement>event.target).href);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user