Sub topic 17
Reaching the Menu Bar and Dock from the Keyboard
This chapter assumes you know the parts of the menu bar and the Dock from earlier chapters: the Apple menu, app menus, menu bar extras, and Dock items. It also assumes you can open System Settings. No Terminal is needed here.
Why use the keyboard for the menu bar and Dock
The menu bar and Dock are built for the pointer, but macOS can drive both from the keyboard. That helps in four situations:
- Your hands are already on the keys and you don't want to reach for the mouse.
- The pointer is on another display.
- A trackpad or mouse isn't working.
- You use assistive technology and need a reliable path to every control.
There are two ways to do this. You can move keyboard focus into the menu bar or Dock and navigate with the arrow keys. Or you can skip navigation and use a direct shortcut for the command you want. Most people mix the two.
Moving focus to the menu bar
Press Control-F2 to move focus to the menu bar. On a laptop keyboard with media keys on the top row, press Fn-Control-F2. The Apple menu title highlights, which shows that focus is now in the menu bar.
Once focus is there:
- Left and Right Arrow move between menu titles: Apple menu, app menus, then other items.
- Down Arrow, Return, or Space opens the highlighted menu.
- Up and Down Arrow move through the items in an open menu.
- Return runs the highlighted command.
- Typing the first letters of an item name jumps to a matching item in an open menu.
- Escape closes the open menu. Pressing it again leaves the menu bar.
Because the menus follow the frontmost app, the items you reach depend on which app is active. Switch to Safari first and you get Safari's menus.
To reach menu bar extras such as Wi-Fi or Sound, use Control-F8, "Move focus to status menus". Arrow keys then move across the extras, and Return opens the one you pick.
Moving focus to the Dock
Press Control-F3 (Fn-Control-F3 on laptops) to move focus to the Dock. A highlight appears on the first item, and the keys work like this:
- Left and Right Arrow move along the Dock. If the Dock is on the left or right edge, use Up and Down Arrow instead.
- Return opens the highlighted app, file, or folder.
- The arrow key that points away from the screen edge opens the item's context menu. With the Dock at the bottom, that is Up Arrow.
- Escape returns focus to where it was.
The context menu contains the same commands you get with a right-click, such as Options, Show in Finder, and the app's recent windows.
Shortcut reference
| Goal | Shortcut |
|---|---|
| Focus the menu bar | Control-F2 |
| Focus the Dock | Control-F3 |
| Focus menu bar extras | Control-F8 |
| Search the Help menu | Command-Shift-? |
| Show or hide the Dock | Command-Option-D |
| Switch to the next app | Command-Tab |
| Cycle windows of the current app | Command-` (grave accent) |
| Open the current app's settings | Command-, (comma) |
| Hide the current app | Command-H |
| Hide all other apps | Command-Option-H |
| Minimize the front window | Command-M |
| Open Mission Control | Control-Up Arrow |
You can review and change the focus shortcuts in System Settings under Keyboard, then Keyboard Shortcuts. The menu bar and Dock entries are in the Keyboard section of that list.
How focus moves
Finding a command without hunting
Every app that uses the standard Help menu supports a search field. Press Command-Shift-? and type part of a command name. Matching menu items appear in the list. Use the Down Arrow to select one and macOS opens the menus and points at the item. Press Return and it runs. You don't need to know which menu holds the command.
This also helps when an app's menu is crowded. You type "zoom" and let the system show where it lives.
The app switcher as keyboard access to the Dock
Command-Tab is the keyboard counterpart to clicking a Dock icon. While you hold Command:
- Tab moves forward through running apps. Shift-Tab moves backward.
- Q quits the highlighted app.
- H hides it.
- Releasing Command switches to it.
If you release Command while an app with only minimized windows is highlighted, nothing visible happens. Hold Option as you release, and macOS restores the minimized window.
Common problems
The shortcut does nothing. On many Macs the top row is set to media functions by default, so F2 and F3 change brightness or open other features. Hold Fn with the shortcut. To change the default, open System Settings, go to Keyboard, Keyboard Shortcuts, Function Keys, and turn on "Use F1, F2, etc. keys as standard function keys". External keyboards often have no Fn key, in which case plain Control-F2 works.
Another app uses the same shortcut. A utility may have claimed Control-F2 or Command-Option-D. Check Keyboard Shortcuts for duplicates, and look in the other app's settings.
The Dock is hidden. Control-F3 still works when the Dock auto-hides. It slides into view while it has focus. Command-Option-D turns auto-hiding on or off without opening System Settings.
Focus is in the menu bar and the keys act oddly. Arrow keys are going to the menu bar, not your document. Press Escape until the highlight disappears.
A menu bar extra is missing. Control-F8 can only reach items that are visible. If the menu bar is crowded, a notch or a full bar can hide the extras. Remove some items, as covered in the chapter on decluttering the menu bar.
Practice
- Open Safari. Press Control-F2 (add Fn on a laptop) and use Right Arrow to move to the View menu. Press Down Arrow to open it, then Escape twice.
- Press Control-F3 and move along the Dock. Open the context menu of one item, then leave with Escape.
- Press Command-Shift-?, type "full screen", and watch the Help search point to the command.
Exercise
You press Control-F3 on a laptop and the keyboard brightness changes instead of the Dock gaining focus. Give two ways to fix it.
Show answer
Hold Fn so the shortcut becomes Fn-Control-F3. Or open System Settings, go to Keyboard, then Keyboard Shortcuts, then Function Keys, and turn on "Use F1, F2, etc. keys as standard function keys", after which plain Control-F3 works.
Exercise
With the Dock at the bottom of the screen and focus on a Dock item, which key opens that item's context menu, and which key closes the focus without launching anything?
Show answer
Up Arrow opens the context menu, because it points away from the bottom edge. Escape leaves Dock focus without launching the item.
Exercise
You can't remember which menu contains "Merge All Windows" in Finder. How do you find and run it using only the keyboard?
Show answer
Press Command-Shift-? to open the Help menu search field, type "merge all windows", press Down Arrow to select the matching result, and press Return to run it.