(event: MouseEvent)
| 327 | } |
| 328 | |
| 329 | const handleLinkClick = (event: MouseEvent) => { |
| 330 | if (!event.shiftKey && !event.ctrlKey && !event.metaKey) return |
| 331 | if (event.altKey) return |
| 332 | if (event.button !== 0) return |
| 333 | |
| 334 | const t = term |
| 335 | if (!t) return |
| 336 | |
| 337 | const text = getHoveredLinkText(t) |
| 338 | if (!text) return |
| 339 | |
| 340 | event.preventDefault() |
| 341 | event.stopImmediatePropagation() |
| 342 | platform.openLink(text) |
| 343 | } |
| 344 | |
| 345 | onMount(() => { |
| 346 | const run = async () => { |
nothing calls this directly
no test coverage detected