Sub topic 12
Customizing shortcuts in System Settings
This chapter assumes you can read shortcut notation (⌘, ⌥, ⌃, ⇧) and open System Settings. You should also know how to find a command in an app's menu bar. Customizing builds on both skills.
What you can change
macOS lets you change shortcuts in two ways:
- Change a system shortcut. You can turn it off or give it a new key combination. Examples are the Mission Control and screenshot shortcuts.
- Add or override an app shortcut. You pick a menu command by name and give it a key combination. You can do this for one app or for all apps.
Open System Settings > Keyboard > Keyboard Shortcuts…. The sidebar lists categories such as Launchpad & Dock, Mission Control, Keyboard, Screenshots, Services, Spotlight, and App Shortcuts.
Changing a system shortcut
- Choose a category, for example Screenshots.
- Double-click the key combination next to the action.
- Press the new combination.
- Clear the checkbox next to an action to turn it off.
If you pick a combination that another shortcut already uses, macOS shows a warning icon. Both shortcuts are then unreliable, so change one of them. Restore Defaults at the bottom of each category undoes your changes.
Adding an app shortcut
- Select App Shortcuts and click the + button.
- In Application, choose a specific app or All Applications.
- In Menu Title, type the command name exactly as it appears in the menu.
- Click the shortcut field and press your combination.
- Click Add.
A common example is Paste and Match Style. Its default shortcut, ⌥⇧⌘V, is awkward to press. Set Menu Title to Paste and Match Style for All Applications and give it ⇧⌘V.
Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| The new shortcut does nothing | The menu title does not match | Copy the title from the menu, including the ellipsis |
| It works in some apps only | The shortcut was added for one app | Re-add it under All Applications |
| It works in only one language | The app's menu title is localized | Use the title shown in your current language |
| The old behavior still happens | The app was open when you changed it | Quit and reopen the app |
| Two actions fire or neither does | The combination conflicts with another shortcut | Choose a different combination |
An app-specific entry takes priority over an All Applications entry for the same title. A shortcut that an app defines itself can also override yours. This happens with apps that handle keys on their own, such as some games and remote-desktop tools.
Remapping modifier keys
At the bottom of the Keyboard Shortcuts window, Modifier Keys… lets you change what ⇪, ⌃, ⌥, and ⌘ do. A popular choice is to make Caps Lock act as Control, which helps with the Control-key text shortcuts. Remember that your remapped key changes every shortcut that uses it, including the ones in this tutorial.
Setting a shortcut from Terminal (optional)
Each entry you add under App Shortcuts is stored in your user preferences. You can write the same entry with defaults. In the shortcut string, @ means Command, $ Shift, ~ Option, and ^ Control. Single quotes stop the shell from treating $ as a variable.
defaults write -g NSUserKeyEquivalents -dict-add 'Paste and Match Style' '@$v'
defaults read -g NSUserKeyEquivalentsThe first command is equivalent to the ⇧⌘V example above. The second prints your global overrides so you can check them. Restart open apps to see the change.
Exercise
You add an App Shortcut for All Applications with the menu title "Save as..." (typed with three periods) and the shortcut ⌃⌘S. It does nothing in TextEdit, where the menu item is "Save…". What is wrong, and how do you fix it?
Show answer
The menu title does not match. The menu uses a single ellipsis character (…), but you typed three periods. Delete the entry, or edit it, so the title is exactly "Save…" as shown in the menu. Then quit and reopen TextEdit. If another shortcut already uses ⌃⌘S, choose a different combination.