# windows: Fix keystroke & keymap \(\#36572\) · gitcafe/zed

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

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

Visibility: public

Requested revision: fff0ecead17c601721c35fcacfbb4804ad22a956

Requested commit: fff0ecead17c601721c35fcacfbb4804ad22a956

Commit: fff0ecead17c601721c35fcacfbb4804ad22a956

Tree: 8f77f14b197d0ec7be758b8bba7e18e3082c7a10

Author: 张小白

Committer: GitHub

## Message

```
windows: Fix keystroke & keymap (#36572)

Closes #36300

This PR follows Windows conventions by introducing
`KeybindingKeystroke`, so shortcuts now show up as `ctrl-shift-4`
instead of `ctrl-$`.

It also fixes issues with keyboard layouts: when `use_key_equivalents`
is set to true, keys are remapped based on their virtual key codes. For
example, `ctrl-\` on a standard English layout will be mapped to
`ctrl-ё` on a Russian layout.


Release Notes:

- N/A

---------

Co-authored-by: Kate <kate@zed.dev>
```

## Parents

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

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