MacOS – How to get overview of keyboard shortcuts from OS X

keyboardmacos

I would like to know about keyboard shortcuts, that is, shortcuts that are mentioned nowhere in the menus, nor anywhere, and must be found by stumbling upon them in sites like these, but still work.

Examples:

  • ., which shows or hides hidden files in a save or open dialog box.
  • , which causes the computer to go to sleep.
  • ., which runs sysdiagnose and shows the results in the finder.

Does anyone know of more of these or how I can get an overview of these shortcuts?

Best Answer

(Many of these are not that well hidden, but I basically copied this list from my website.)

  • Holding ⌥⇧⌘⎋ for a few seconds force quits the frontmost application
  • ⌥⇧⌘Q logs out without showing a confirmation dialog
  • ⌃⌥⌘⏏ restarts without showing a confirmation dialog
  • ⌃⌥⇧⌘⏏ shuts down without showing a confirmation dialog
  • ⌃⇧⏏ puts displays to sleep
  • ⌘F1 toggles mirroring displays
  • ⌃F2 focuses the menu bar
  • ⌃F4 cycles through windows on the current space
  • F5 shows the completion menu
  • ⌘F5 toggles VoiceOver
  • ⌥⌘F5 shows accessibility options
  • ⌥⇧F11 and ⌥⇧F12 change the volume in smaller increments
  • ⌃⌘D shows a dictionary popover
  • ⇧⌘L searches for the selected text using the default search engine
  • ⌃⌥⇧⌘. starts recording a sysdiagnose report that is saved to /var/tmp/
  • ⌘⌫ selects buttons like Don't Save in dialogs
  • ⌅ selects the default button in dialogs even when the focus is on a multi-line text view
  • ⌘I shows a list of files included in an installer in some installer windows
  • ⌥⇧⌘S is Save As in many applications that use auto-save
  • ⌥⇞ and ⌥⇟ scroll a page up and down and move the caret
  • ⌥↩ and ⌥⇥ insert a newline and a tab even when a form field has focus
  • ⌥⇧↓ and ⌃⇧E select to the end of a paragraph
  • ^L centers a view around the caret
  • ⌃O inserts a newline after the caret
  • ⌃T transposes characters on the left and right side of the caret
  • ⌃' and ⌃" insert straight quotes even when smart quotes are enabled
  • ⌃⌫ converts for example ä to a
  • ⌥- and ⇧⌥- insert an en-dash and an em-dash in many keyboard layouts
  • ⌥], ⌥⇧], ⌥[, and ⌥⇧[ insert smart quotes in many keyboard layouts
  • ⇧⌘↑ focuses the desktop in Finder
  • ⌃⌘↑ opens the folder shown on the title bar in a new window in Finder
  • ⌃⌘F opens a Spotlight window that is set to search by name by default in Finder
  • ⌃⌥⌘5 sorts items by date modified without grouping files under sections in Finder
  • ⌥⌘I opens an inspector window that shows the combined size of the selected files in Finder
  • ⌅ enters rename mode in iTunes
  • ⌥⇧⌘T takes a photo without a timer or a screen flash in Photo Booth
  • ⌥← and ⌥→ scroll a page left and right on pages with horizontal scroll bars in Safari
  • ⇧⌘↩ opens the address on the location bar in a new tab and focuses the tab in Safari
  • ⌥↩ downloads the address on the location bar in Safari
  • ⌥⇥ cycles through links in Safari
  • ⌃⌥⇥ inserts a tab when a form element is focused in Safari

You can use Shortcuts or KeyCue to show a list of all keyboard shortcuts displayed in the menu bar. I also posted an AppleScript like them at https://superuser.com/a/415221.

Many of the default text editing shortcuts are defined in a property list inside AppKit.framework:

plutil -convert xml1 /System/Library/Frameworks/AppKit.framework/Resources/StandardKeyBinding.dict -o - | pl | grep -v noop: | ruby -pe '$_.gsub!(/[^ -~\n]/,"\\U%04X"%$0.unpack("U*")[0])'

Other lists of keyboard shortcuts: