forked from nostr/nostrweb
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
parent
77711d655d
commit
42fbd7c4c8
|
@ -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…
Reference in New Issue