# terminal: Fix support for alt-f5 and add support for ctrl-alt-key \(\#62891\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2bf9e2647381f4690d4eb5aeca7979fe9849b097

Requested commit: 2bf9e2647381f4690d4eb5aeca7979fe9849b097

Commit: 2bf9e2647381f4690d4eb5aeca7979fe9849b097

Tree: 50de027ca133b908628acb734380dbe106d1b81a

Author: Gary Guo

Committer: GitHub

## Message

```
terminal: Fix support for alt-f5 and add support for ctrl-alt-key (#62891)

# Objective

- Fix support for alt-f5 in terminal and add support for ctrl-alt-key

## Solution

- Fix `crates/terminal/src/mappings/keys.rs`.

## Testing

- Did you test these changes? If so, how? Added a unit test, and test
the built zed with fish_key_reader to check that the keys are indeed
recognized.
- Are there any parts that need more testing? No
- How can other people (reviewers) test your changes? Is there anything
specific they need to know? Fish has fish_key_reader which can check the
keys that it recognizes. Not sure about other shells. `cat | xxd` can be
used to confirm the exact received key codes.
- If relevant, what platforms did you test these changes on, and are
there any important ones you can't test? Tested on Linux only.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

---

Release Notes:

- In terminal, "alt-f5" keystroke support is fixed and "ctrl-alt-key"
support is added for letter keys.

---------

Signed-off-by: Gary Guo <gary@garyguo.net>
Co-authored-by: Kirill Bulatov <kirill@zed.dev>
```

## Parents

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

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