Skip to content

Commit 8ae5524

Browse files
✨ Add the Keyboard section (#352)
Co-authored-by: Alexander Momchilov <[email protected]>
1 parent fb3d690 commit 8ae5524

File tree

9 files changed

+119
-12
lines changed

9 files changed

+119
-12
lines changed

docs/.vitepress/config.js

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,23 @@ export default defineConfig({
355355
},
356356
],
357357
},
358+
{
359+
text: 'Keyboard',
360+
items: [
361+
{
362+
text: 'Key held down behavior',
363+
link: '/keyboard/applepressandholdenabled.md',
364+
},
365+
{
366+
text: 'Configure fn/🌐︎ key',
367+
link: '/keyboard/applefnusagetype.md',
368+
},
369+
{
370+
text: 'Function keys behavior',
371+
link: '/keyboard/applekeyboardfnstate.md',
372+
},
373+
],
374+
},
358375
{
359376
text: 'Mission Control',
360377
items: [
@@ -469,10 +486,6 @@ export default defineConfig({
469486
text: 'Close confirm changes popup',
470487
link: '/misc/nsclosealwaysconfirmschanges.md',
471488
},
472-
{
473-
text: 'Function keys behavior',
474-
link: '/misc/applekeyboardfnstate.md',
475-
},
476489
],
477490
},
478491
],

docs/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ defaults rename ${domain} ${old_key} ${new_key}
147147
- [Enable dragging without drag lock](./trackpad/dragging.md)
148148
- [Enable dragging with three finger drag](./trackpad/trackpadthreefingerdrag.md)
149149

150+
### Keyboard
151+
152+
- [Key held down behavior](./keyboard/applepressandholdenabled.md)
153+
- [Configure fn/🌐︎ key](./keyboard/applefnusagetype.md)
154+
- [Function keys behavior](./keyboard/applekeyboardfnstate.md)
155+
150156
### Mission Control
151157

152158
- [Rearrange automatically](./mission-control/mru-spaces.md)
@@ -191,9 +197,7 @@ defaults rename ${domain} ${old_key} ${new_key}
191197
- [Enable spring loading for all Dock items](./misc/enable-spring-load-actions-on-all-items.md)
192198
- [Show Music song notifications](./misc/userwantsplaybacknotifications.md)
193199
- [Disable application quarantine message](./misc/lsquarantine.md)
194-
- [Key held down behavior](./misc/applepressandholdenabled.md)
195200
- [Close confirm changes popup](./misc/nsclosealwaysconfirmschanges.md)
196-
- [Function keys behavior](./misc/applekeyboardfnstate.md)
197201

198202
## 🤔 How do I add a command?
199203

docs/keyboard/applefnusagetype.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
title: Keyboard | Fn key usage
3+
description: Choose what happens when you press the Fn or 🌐︎ key on the keyboard.
4+
head:
5+
- - meta
6+
- property: 'og:title'
7+
content: macOS defaults > Keyboard > Fn key usage
8+
- - meta
9+
- property: 'og:description'
10+
content: Choose what happens when you press the Fn or 🌐︎ key on the keyboard.
11+
---
12+
13+
# Function key usage
14+
15+
Choose what happens when you press the Fn or 🌐︎ key on the keyboard.
16+
17+
⚠️ A restart of your Mac is required to apply these changes.
18+
19+
<!-- break lists -->
20+
21+
- **Tested on macOS**:
22+
- Sonoma
23+
- **Parameter type**: int
24+
- 0
25+
- 1
26+
- 2
27+
- 3
28+
29+
## Set to: Do Nothing (default)
30+
31+
Nothing happens.
32+
33+
```bash
34+
defaults write com.apple.HIToolbox AppleFnUsageType -int "0"
35+
```
36+
37+
## Set to: Change input source
38+
39+
Switches between keyboard layouts for writing in other languages (known as input sources).
40+
41+
```bash
42+
defaults write com.apple.HIToolbox AppleFnUsageType -int "1"
43+
```
44+
45+
## Set to: Show Emoji & Symbols
46+
47+
Opens the Character Viewer for entering emoji, symbols, and more.
48+
49+
```bash
50+
defaults write com.apple.HIToolbox AppleFnUsageType -int "2"
51+
```
52+
53+
## Set to: Start Dictation
54+
55+
Starts dictation when you press the key twice (you may be asked to enable dictation first).
56+
57+
```bash
58+
defaults write com.apple.HIToolbox AppleFnUsageType -int "3"
59+
```
60+
61+
## Read current value
62+
63+
```bash
64+
defaults read com.apple.HIToolbox AppleFnUsageType
65+
```
66+
67+
## Reset to default value
68+
69+
```bash
70+
defaults delete com.apple.HIToolbox AppleFnUsageType
71+
```

docs/misc/applekeyboardfnstate.md renamed to docs/keyboard/applekeyboardfnstate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Function keys behavior | Miscellaneous
2+
title: Function keys behavior | Keyboard
33
description: Allows you to change the behavior of the function keys.
44
head:
55
- - meta
66
- property: 'og:title'
7-
content: macOS defaults > Miscellaneous > Function keys behaviour
7+
content: macOS defaults > Keyboard > Function keys behaviour
88
- - meta
99
- property: 'og:description'
1010
content: Allows you to change the behavior of the function keys.

docs/misc/applepressandholdenabled.md renamed to docs/keyboard/applepressandholdenabled.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Key held down behavior | Miscellaneous
2+
title: Key held down behavior | Keyboard
33
description: Allows you to select the behavior when a key is held down for a long time.
44
head:
55
- - meta
66
- property: 'og:title'
7-
content: macOS defaults > Miscellaneous > Key held down behavior
7+
content: macOS defaults > Keyboard > Key held down behavior
88
- - meta
99
- property: 'og:description'
1010
content: Allows you to select the behavior when a key is held down for a long time.
File renamed without changes.
File renamed without changes.

docs/keyboard/index.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Keyboard
3+
description: The hardware device to type on a computer.
4+
head:
5+
- - meta
6+
- property: 'og:title'
7+
content: macOS defaults > Keyboard
8+
- - meta
9+
- property: 'og:description'
10+
content: The hardware device to type on a computer.
11+
---
12+
13+
# Keyboard
14+
15+
The hardware device to type on a computer.
16+
17+
## Keys
18+
19+
- [Key held down behavior](./applepressandholdenabled.md)
20+
- [Configure fn/🌐︎ key](./applefnusagetype.md)
21+
- [Function keys behavior](./applekeyboardfnstate.md)

docs/misc/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ All the others `defaults` that don't deserve their own category.
2020
- [Enable spring loading for all Dock items](./enable-spring-load-actions-on-all-items.md)
2121
- [Show Music song notifications](./userwantsplaybacknotifications.md)
2222
- [Disable application quarantine message](./lsquarantine.md)
23-
- [Key held down behavior](./applepressandholdenabled.md)
2423
- [Close confirm changes popup](./nsclosealwaysconfirmschanges.md)
25-
- [Function keys behavior](./applekeyboardfnstate.md)

0 commit comments

Comments
 (0)