From 174e6e43d914a716f51c7665fd65bb5d49d1eb42 Mon Sep 17 00:00:00 2001 From: OFF0 Date: Sat, 15 Apr 2023 15:19:26 +0200 Subject: [PATCH] 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 --- src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.ts b/src/main.ts index 3d0cf77..47ddd94 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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; }