diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index abc28f3f..93dd622a 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -246,6 +246,7 @@ export default defineConfig({ 'applepressandholdenabled.md', 'applefnusagetype.md', 'applekeyboardfnstate.md', + 'applekeyboarduimode.md', 'mission-control', 'mru-spaces.md', diff --git a/docs/keyboard/applekeyboarduimode.md b/docs/keyboard/applekeyboarduimode.md new file mode 100644 index 00000000..53c99dc1 --- /dev/null +++ b/docs/keyboard/applekeyboarduimode.md @@ -0,0 +1,63 @@ +--- +title: Keyboard navigation | Keyboard +description: Choose whether to enable moving focus with Tab and Shift Tab. +head: + - - meta + - property: 'og:title' + content: macOS defaults > Keyboard navigation + - - meta + - property: 'og:description' + content: Choose whether to enable moving focus with Tab and Shift Tab. +--- + +# Keyboard navigation + +Choose whether to enable moving focus with Tab and Shift Tab. + +- **Tested on macOS**: + - Sonoma + - Sequoia +- **Parameter type**: int + - 0 + - 2 + +## Set to: Disabled (default) + +```bash +defaults write NSGlobalDomain AppleKeyboardUIMode -int "0" +``` + +Save changes dialog with keyboard navigation disabled + +## Set to: Enabled + +```bash +defaults write NSGlobalDomain AppleKeyboardUIMode -int "2" +``` + +Save changes dialog with keyboard navigation enabled, showing focus ring on Don't Save + +## Read current value + +```bash +defaults read NSGlobalDomain AppleKeyboardUIMode +``` + +## Reset to default value + +```bash +defaults delete NSGlobalDomain AppleKeyboardUIMode +``` + +## Set value from UI + +1. Open the Keyboard preference pane in System Preferences +2. Toggle "Keyboard navigation" diff --git a/docs/keyboard/images/AppleKeyboardUIMode/disabled.png b/docs/keyboard/images/AppleKeyboardUIMode/disabled.png new file mode 100644 index 00000000..0ecc7f4b Binary files /dev/null and b/docs/keyboard/images/AppleKeyboardUIMode/disabled.png differ diff --git a/docs/keyboard/images/AppleKeyboardUIMode/enabled.png b/docs/keyboard/images/AppleKeyboardUIMode/enabled.png new file mode 100644 index 00000000..3cfe9ba8 Binary files /dev/null and b/docs/keyboard/images/AppleKeyboardUIMode/enabled.png differ