this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Ignore cmd/ctrl/shift/alt keys + middle clicks

+6
+6
src/utils/handle-content-links.js
··· 6 6 let { target } = e; 7 7 target = target.closest('a'); 8 8 if (!target) return; 9 + 10 + // If cmd/ctrl/shift/alt key is pressed or middle-click, let the browser handle it 11 + if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.which === 2) { 12 + return; 13 + } 14 + 9 15 const prevText = target.previousSibling?.textContent; 10 16 const textBeforeLinkIsAt = prevText?.endsWith('@'); 11 17 const textStartsWithAt = target.innerText.startsWith('@');