# editor: Fix ctrl\+drag/drop to duplicate selected text \(\#45611\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/dc40f2155f91f084ffa33667a6f6292b92958807)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: dc40f2155f91f084ffa33667a6f6292b92958807

Requested commit: dc40f2155f91f084ffa33667a6f6292b92958807

Commit: dc40f2155f91f084ffa33667a6f6292b92958807

Tree: 5b102f12d768d64cf8b41161ab7beda798038283

Author: David Budke

Committer: GitHub

## Message

```
editor: Fix ctrl+drag/drop to duplicate selected text (#45611)

Holding control while dragging text to copy it was being blocked by link
handling stopping the propogation of the mouse event; solution: don't
handle link clicks when selection_drag_state is Dragging.

Issue found & fix tested on Linux (since the modifier key on mac is
apparently different, the issue likely doesn't occur there, but I'm
assuming it does apply to Windows).

I didn't see an issue open for it, and since I fixed it myself I'm
unsure whether it needs one or if the PR is enough.

Release Notes:

- Fix an issue where Ctrl+drag to duplicate selected text on Linux and
Windows when the selection is inside a link.
```

## Parents

- [92b0f144c0bc3d549db8817fb92b767173740093](https://git.cafe/gitcafe/zed/commit/92b0f144c0bc3d549db8817fb92b767173740093?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/dc40f2155f91f084ffa33667a6f6292b92958807?format=markdown)
