# editor: Dismiss drag selection when dropped outside editor \(\#32382\) · gitcafe/zed

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

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

Visibility: public

Requested revision: eb5f59577d637f2ce2dc6da1920b724fa44cf536

Requested commit: eb5f59577d637f2ce2dc6da1920b724fa44cf536

Commit: eb5f59577d637f2ce2dc6da1920b724fa44cf536

Tree: ecf05d1287f34360fdcb94b6ba3cec9837916a06

Author: CharlesChen0823

Committer: GitHub

## Message

```
editor: Dismiss drag selection when dropped outside editor (#32382)

This PR fixes two issues:

1. On macOS, using Alt to copy the selection instead of cutting it.
2. Dropping the drag selection outside the editor dismisses it.  


https://github.com/user-attachments/assets/341e21c3-3eca-4e58-9bcc-8ec1de18e999


Release Notes:

- N/A

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
```

## Parents

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

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