# Use ESC to cancel dragging in Zed \(\#30318\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b4fbb9bc085733d2f771cd440ff57305cf6eebeb

Requested commit: b4fbb9bc085733d2f771cd440ff57305cf6eebeb

Commit: b4fbb9bc085733d2f771cd440ff57305cf6eebeb

Tree: 233ae126555607ad88021abbaec470807d3939f3

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Use ESC to cancel dragging in Zed (#30318)

Closes https://github.com/zed-industries/zed/issues/11887

ESC is always captured in terminal due to 


https://github.com/zed-industries/zed/blob/980bfae331dd5078bbba9fe0f3993d9ad5ca6e29/crates/terminal/src/terminal.rs#L1339-L1353

so this part is not fixed.

Otherwise, all other drags are cancelled when ESC is pressed:


https://github.com/user-attachments/assets/6e70a1e5-c244-420b-9dec-ae2ac2997a59


Release Notes:

- Allowed to use ESC to cancel dragging in Zed
```

## Parents

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

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