Fix shortcuts with Shift (cherry-pick #34614) (#34616)

Cherry-picked Fix shortcuts with `Shift` (#34614)

Closes #34605, #34606, #34609

Release Notes:

- (Preview only) Fixed shortcuts involving Shift

Co-authored-by: Oleksiy Syvokon <oleksiy@zed.dev>
This commit is contained in:
gcp-cherry-pick-bot[bot] 2025-07-17 14:31:57 +03:00 committed by GitHub
parent 92105e92c3
commit cbdca4e090
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -837,7 +837,7 @@ impl crate::Keystroke {
&& key.is_ascii()
{
if key.is_ascii_graphic() {
key_utf8.clone()
key_utf8.to_lowercase()
// map ctrl-a to a
} else if key_utf32 <= 0x1f {
((key_utf32 as u8 + 0x60) as char).to_string()