# event_targets_link

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/_links/event_targets_link)

Return whether the style under the mouse points to a clickable link.

Detects both Rich `Style(link=...)` (OSC 8) hyperlinks and the
`@click=link(...)` meta actions that Textual's `Markdown` widget attaches
to rendered links and images.

## Signature

```python
event_targets_link(
    event: MouseMove,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `event` | `MouseMove` | Yes | The Textual mouse-move event to inspect. |

## Returns

`bool`

`True` when the hovered character belongs to a link span.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/7794b61a6e76230e8c7a49bdce808b3728305914/libs/code/deepagents_code/tui/widgets/_links.py#L127)