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
OFF0 2 years ago
parent d058bdd35d
commit 174e6e43d9
Signed by: offbyn
GPG Key ID: 94A2F643C51F37FA

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

Loading…
Cancel
Save