···6262function handleImportLinkNavigate() {
6363 if (!codeRef.value) return
64646565- const anchors = codeRef.value.querySelectorAll('a.import-link')
6565+ const anchors = codeRef.value.querySelectorAll<HTMLAnchorElement>('a.import-link')
6666 anchors.forEach(anchor => {
6767 // NOTE: We do not need to remove previous listeners because we re-create the entire HTML content on each html update
6868 anchor.addEventListener('click', event => {
6969+ if (event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) return
6970 const href = anchor.getAttribute('href')
7071 if (href) {
7172 event.preventDefault()