# Fix ctrl-delete keybind in the terminal \(\#51726\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 71f5dbdf26f5152ea32fca4675678593f7e183e6

Requested commit: 71f5dbdf26f5152ea32fca4675678593f7e183e6

Commit: 71f5dbdf26f5152ea32fca4675678593f7e183e6

Tree: 851d01d3c2a9e2ef0bad0f5f79900cfe7a6a1d37

Author: Justin Su

Committer: GitHub

## Message

```
Fix ctrl-delete keybind in the terminal (#51726)

showkey in Ghostty, iTerm2, and Terminal.app reports ctrl-delete as
`<ESC>[3;5~`.

I tested this keybind on macOS, where fish_key_reader correctly
interprets it as ctrl-delete.

Closes #51725

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [ ] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Fixed ctrl-delete keybind in the terminal

---------

Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
```

## Parents

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

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