Sub topic 12
Customizing Shortcuts in System Settings
This chapter assumes you know the modifier keys and their symbols (⌘, ⌥, ⌃, ⇧). It also assumes you can open System Settings and that you have looked through app menus for shortcuts, as covered in the previous chapters. Here you will change existing shortcuts, add new ones for menu commands, and handle the conflicts and failures that come up.
Why customize
Default shortcuts are a reasonable starting point, but they do not fit every workflow. You might want to do any of these:
- Give a menu command that has no shortcut a key combination, such as "Merge All Windows" in Safari or "Export as PDF" in Preview.
- Move a system shortcut that collides with an app you use heavily, such as a design tool or an IDE.
- Turn off a shortcut you trigger by accident.
- Make the same command use the same keys in several apps that name it differently.
macOS offers two mechanisms for this. Both live in the same place, System Settings > Keyboard > Keyboard Shortcuts….
- System categories let you change or disable the built-in shortcuts that macOS itself provides, such as Mission Control or Spotlight.
- App Shortcuts let you attach a key combination to any menu item, in one app or in all apps, by typing the exact menu title.
Opening the shortcut settings
- Open System Settings.
- Choose Keyboard in the sidebar.
- Click Keyboard Shortcuts… near the bottom of the pane. A sheet opens with a category list on the left and the shortcuts for the selected category on the right.
The categories vary slightly between macOS versions. Typical ones are Launchpad & Dock, Display, Mission Control, Keyboard, Input Sources, Screenshots, Services, Spotlight, Accessibility, App Shortcuts, and Function Keys.
Changing a system shortcut
Every row in a system category has a checkbox and a key combination.
- Select a category, for example Mission Control.
- Double-click the key combination for the row you want to change, for example "Move left a space".
- Press the new combination. The field records what you press.
- Make sure the checkbox next to the row is ticked.
To disable a shortcut, clear its checkbox. The binding is kept but inactive, so you can turn it back on later. To return everything in the sheet to factory values, click Restore Defaults in the lower left. That button resets the whole list, not only the category you are looking at, so use it with care.
Valid combinations
macOS accepts a combination only if it includes at least one modifier key, with a few exceptions such as function keys. A bare letter cannot be a shortcut, because it would block typing. Combinations that already belong to another entry in the same list are flagged with a yellow warning triangle. The system lets you save a conflicting combination, but only one of the two will work, and it is not always obvious which.
Adding an app shortcut
App Shortcuts are the most useful part of this pane. They bind keys to a menu item by name.
- In the Keyboard Shortcuts sheet, select App Shortcuts.
- Click the + button below the list.
- Choose an application from the Application pop-up. Choose All Applications to apply the shortcut everywhere the menu item exists.
- In Menu Title, type the name of the menu item exactly as it appears in the app's menu.
- Click in Keyboard Shortcut and press the combination you want.
- Click Add.
The menu title must match exactly
The system finds the command by comparing the text you typed with the menu item's title. This is the most common source of failure. Keep these rules in mind:
- Capitalization and spelling must match.
- If the menu item ends with an ellipsis (…), include it. In many apps this is the single character "…", which you type with ⌥; on a US keyboard layout. Typing three periods usually does not match.
- Type only the final item, not the path. For "File > Export as PDF…", the title is
Export as PDF…. - For an item in a submenu, still use only its own name.
- Menu titles are localized. If your system language is not English, use the title shown in your own language.
- Some titles change while a modifier is held, for example "Close Window" becomes "Close All". Each title is a separate entry.
Worked example: a shortcut for Export as PDF
Suppose Preview has the command File > Export as PDF… and you use it daily.
- Open App Shortcuts and click +.
- Set Application to Preview.
- Enter the menu title
Export as PDF…. - Press ⌃⌥⌘P as the shortcut.
- Click Add.
Quit and reopen Preview if it was already running, then open the File menu. The command now shows ⌃⌥⌘P next to it. If the shortcut does not appear in the menu, the title did not match, and you should compare it character by character.
Using several modifiers makes accidental collisions unlikely. A good pattern is to keep ⌘ with one or two extra modifiers for personal shortcuts, so they sit apart from the defaults the app already uses.
One shortcut for many apps
When you choose All Applications, the shortcut applies in any app that has a menu item with that title. This is useful for commands that have the same name everywhere, such as "Zoom" in the Window menu, or "Show Tab Bar" in several apps. It also means you must check for collisions, because an app's own shortcut for a different command may use the same keys.
Precedence
When a combination is claimed more than once, the result depends on where the claim comes from:
| Situation | What usually happens |
|---|---|
| An app-specific entry and an All Applications entry for the same menu title | The app-specific entry wins in that app. |
| A custom App Shortcut and a built-in menu shortcut on the same keys | The custom shortcut generally takes effect, and the built-in key stops working in menus. |
| A system shortcut and an app's own key handling on the same keys | The system shortcut is processed first, so the app never sees the keys. |
| Two entries inside the same list on the same keys | Only one works. The warning triangle appears. |
Treat the third row as the most important one. If a shortcut you press inside an app does nothing, or does something unexpected such as switching Spaces, a system shortcut may be intercepting it. Look in the Mission Control, Spotlight, and Input Sources categories first.
Editing and removing app shortcuts
- To change an existing App Shortcut, double-click its key combination and press a new one.
- To change its title or application, remove it and add it again.
- To remove a shortcut, select the row and click the − button.
- To disable one temporarily, clear its checkbox.
Removing an App Shortcut returns the menu item to whatever it had before. Custom entries never delete the app's built-in binding from its files. They only override it while the entry exists.
How the system applies your changes
The diagram explains two common failures. A system shortcut can hide an app shortcut, and a custom shortcut only works if the menu title it names exists and is enabled at that moment.
Common problems and fixes
The shortcut does nothing
- Check that the menu title matches exactly, including the ellipsis and capitalization.
- Check that the menu item is enabled. Menu items that are greyed out cannot run, for example "Copy" with nothing selected.
- Quit and reopen the app. Some apps read their menus only at launch.
- Look for a yellow warning triangle in the list.
The shortcut works in some apps only
- Apps that draw their own menus, such as some cross-platform or Electron-based apps, may not respond to the system's custom shortcuts. Look for a shortcut setting inside the app itself.
- Some apps do not have a menu item with that title. This is normal with All Applications.
A system shortcut interferes with an app
Terminal tools, remote desktop clients, virtual machines, and games often need keys that macOS also uses. Move or turn off the system shortcut and check whether the app receives the keys. Remote desktop and virtual machine apps sometimes have an option to send system shortcuts to the remote machine, so check there first.
Function keys behave oddly
On many Macs the top row triggers brightness, volume, and media actions by default. Pressing fn with the key gives the standard F-key. The Function Keys category lets you switch this behavior, and you can choose per-app exceptions with the + button in that category. This setting also appears in System Settings > Keyboard as "Use F1, F2, etc. keys as standard function keys".
Full Keyboard Access
The Keyboard category includes an option for Keyboard navigation, which moves focus between controls using Tab. It is also toggled with ⌃F7. Turn it on if you want to use dialogs, buttons, and toolbars without the mouse.
A practical process for customizing
Customize in small steps, so you can tell what caused a problem.
- Write down one command you use daily and do by mouse.
- Check the app's menu for an existing shortcut. If one exists, learn it first.
- If none exists, add an App Shortcut with a combination that includes ⌘ plus two other modifiers.
- Test it in the app, then use it for a week.
- Keep a list of what you changed, so you can undo it later or move it to a new Mac.
Preferences for App Shortcuts are stored in your user account and are included in a Time Machine backup of your home folder. They do not travel automatically to another Mac unless you use Migration Assistant or restore from a backup, so keep your list.
Exercise
You added an App Shortcut in Preview for the menu title "Export as PDF..." using three typed periods. The menu shows no shortcut next to the command. What is the likely cause, and what do you check first?
Show answer
The menu title does not match. Preview's menu item most likely ends with the single ellipsis character "…", not three periods. Open the File menu, compare the title character by character, remove the entry, and add it again with the exact title. Then quit and reopen Preview if it was already running.
Exercise
You set ⌃→ in an app for a custom action, but pressing it switches Spaces instead. Which category do you look in, and what are two ways to resolve it?
Show answer
Look in the Mission Control category, where "Move right a space" uses ⌃→. Either clear the checkbox for that row to disable it, or change its key combination to something else, then press your shortcut in the app again. Alternatively, choose a different combination for your own App Shortcut.