Add documentation for secondary modifier (#27129)

Follow up to: https://github.com/zed-industries/zed/pull/26390

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki 2025-03-19 15:05:33 -07:00 committed by GitHub
parent c30fb5f1ec
commit 5387ae9ed8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,6 +60,7 @@ Each keypress is a sequence of modifiers followed by a key. The modifiers are:
- `alt-` for alt (option on macOS) - `alt-` for alt (option on macOS)
- `shift-` The shift key - `shift-` The shift key
- `fn-` The function key - `fn-` The function key
- `secondary-` Equivalent to `cmd` when Zed is running on macOS and `ctrl` when on Windows and Linux
The keys can be any single unicode codepoint that your keyboard generates (for example `a`, `0`, `£` or `ç`), or any named key (`tab`, `f1`, `shift`, or `cmd`). If you are using a non-Latin layout (e.g. Cyrillic), you can bind either to the cyrillic character, or the latin character that that key generates with `cmd` pressed. The keys can be any single unicode codepoint that your keyboard generates (for example `a`, `0`, `£` or `ç`), or any named key (`tab`, `f1`, `shift`, or `cmd`). If you are using a non-Latin layout (e.g. Cyrillic), you can bind either to the cyrillic character, or the latin character that that key generates with `cmd` pressed.