keymap: Fix shift- modifier symbol (#25238)

Closes #25230

```
The shift- modifier can only be used in combination with a letter to indicate the uppercase version. For example shift-g matches typing G. Although on many keyboards shift is used to type punctuation characters like (, the keypress is not considered to be modified and so shift-( does not match.
```

[Document](https://zed.dev/docs/key-bindings#keybinding-syntax)

Release Notes:

- Fixed Keymap use `shift-` modifier symbol
This commit is contained in:
0x2CA 2025-02-20 23:47:51 +08:00 committed by GitHub
parent f2b7d8a9c9
commit 78a8002415
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 31 additions and 31 deletions

View file

@ -3964,7 +3964,7 @@ mod tests {
assert_key_bindings_for(
workspace.into(),
cx,
vec![("backspace", &B), ("[", &ActivatePrevItem)],
vec![("backspace", &B), ("{", &ActivatePrevItem)],
line!(),
);
}