You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For presenting keyboard shortcuts, follow the [Microsoft Style Guide](https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/keys-keyboard-shortcuts), **except for the following differences**:
176
+
177
+
- Use the HTML `<kbd>` tag for each individual key.
178
+
179
+
-**Use:**`<kbd>Command</kbd>+<kbd>B</kbd>`
180
+
-**Avoid:**`Command+B`
181
+
- Use full words instead of symbols for Apple modifier keys.
182
+
183
+
-**Use:**`Command`
184
+
-**Avoid:**`⌘`
185
+
- Use symbols for keys of special character, not full words.
186
+
187
+
-**Use:**`.`, `,`, and `→`.
188
+
-**Avoid:**`Period`, `Comma`, and `Right arrow`.
189
+
190
+
### Usage highlights
191
+
192
+
Below are some usage highlights for how we present keyboard shortcuts in our documentation:
193
+
194
+
- The basic syntax is to show keys with `+` between key combinations, without any spaces.
195
+
196
+
-**Use:**`<kbd>Command</kbd>+<kbd>B</kbd>`, which is rendered as <kbd>Command</kbd>+<kbd>B</kbd>.
197
+
-**Avoid:**`<kbd>Command</kbd> + <kbd>B</kbd>` or `<kbd>Command + B</kbd>` which are rendered as <kbd>Command</kbd> + <kbd>B</kbd> or <kbd>Command + B</kbd>.
198
+
- Always capitalize letter keys for general references and keyboard shortcuts.
199
+
200
+
-**Use:** <kbd>Command</kbd>+<kbd>B</kbd>
201
+
-**Avoid:** <kbd>Command</kbd>+<kbd>b</kbd>.
202
+
- Use the correct modifier keys for the each operating system.
203
+
204
+
**Note:** Windows and Linux have <kbd>Ctrl</kbd> abbreviated, whereas on Mac it is spelled in full: <kbd>Control</kbd>.
- Don't confuse key combinations with keys in a sequence.
215
+
216
+
- <kbd>Command</kbd>+<kbd>B</kbd> indicates that the user should hold down the <kbd>Command</kbd> key and press the <kbd>B</kbd> key.
217
+
- <kbd>G</kbd> <kbd>I</kbd> indicates that the user should press the <kbd>G</kbd> key, then press the <kbd>I</kbd> key.
218
+
- When describing a keyboard shortcut for multiple operating systems, append the operating system in brackets after the shortcut. Describe the Mac shortcut first, then Windows/Linux.
219
+
220
+
-**Use:**`<kbd>Command</kbd>+<kbd>B</kbd> (Mac) or <kbd>Ctrl</kbd>+<kbd>B</kbd> (Windows/Linux)`, presented as:
221
+
222
+
<kbd>Command</kbd>+<kbd>B</kbd> (Mac) or <kbd>Ctrl</kbd>+<kbd>B</kbd> (Windows / Linux)
223
+
-**Avoid:**`<kbd>Ctrl</kbd>+<kbd>B</kbd> or <kbd>Command</kbd>+<kbd>B</kbd>`, presented as:
224
+
225
+
<kbd>Ctrl</kbd>+<kbd>B</kbd> or <kbd>Command</kbd>+<kbd>B</kbd>
226
+
173
227
## Linebreaks
174
228
175
229
For plain text, use linebreaks to separate paragraphs in the source (two consecutive linebreaks), rather than to create visual space in the source. Avoid unneeded linebreaks, especially in lists.
0 commit comments