MacOS – OS X keyboard shortcut precedence

keyboardmacosshortcut

I'm new to Apple, and while the experience has largely been positive, I have been stymied trying to configure keyboard shortcuts to my specifications. For example, I used a rather round-about process (via the "Automator") to assign a shortcut to open a new terminal. But even now this this shortcut only seems to function if the focus is on a program which has not overwritten that particular key-combination with its own definition.

I'm looking for information on something like a hierarchy of protocols for how my Mac decides to use which key-combination definition in which context, or a philosophy on the best way to assign my preferred shortcuts. Can I make a keyboard shortcut so high in priority that no application can take precedence?

Best Answer

I think the OS X Human Interface Guidelines are the place you're looking for. They state that there are Apple-reserved shortcuts (e.g. cmd ⌘+space) and also “expected behaviours” (e.g. cmd ⌘+c) one should respect.

While they don't explicitly state the priority, it suggests itself that the System always should have priority before the frontmost (active) and then background applications.

From my experience, you’re on the safe side with multiple modifier keys (i.e. cmd ⌘+ctrl+shift+…).

As an aside: regarding your specific example (assigning a shortcut to open a new terminal) there's also excellent apps for that, TotalTerminal (Terminal.app extension) and iTerm 2 (Terminal.app replacement) come to mind