feed: ignore ctrl click

ctrl/command click should do the native browser thing and not be
intercepted as normal click, i.e. ctrl click open-in-new-tab works
pull/72/head
OFF0 2 years ago
parent 77711d655d
commit 42fbd7c4c8
Signed by: offbyn
GPG Key ID: 94A2F643C51F37FA

@ -332,6 +332,10 @@ document.body.addEventListener('click', (event: MouseEvent) => {
const target = event.target as HTMLElement;
const a = target?.closest('a');
if (a) {
// dont intercept command-click
if (event.metaKey) {
return;
}
handleLink(a, event);
return;
}

Loading…
Cancel
Save