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>
2bf9e26473Gary Guo committed on 8/19/2026, 10:17:41 PM· committed by GitHubparent6a37cc1