Key names
This page lists every name you can use when writing a shortcut in
[bindings].
Syntax
Section titled “Syntax”A shortcut is one or more modifiers and exactly one key, joined by dashes:
option-shift-hcmd-ctrl-leftctrl-option-f5- Names are not case sensitive.
Alt-His read asoption-h. - The order of the modifiers does not matter.
- At least one modifier is required.
- A doubled dash at the end means the minus key:
option--isoption-minus.
Modifiers
Section titled “Modifiers”| Name | Key | Also accepted |
|---|---|---|
cmd |
Command (⌘) | command, super |
ctrl |
Control (⌃) | control |
option |
Option (⌥) | opt |
shift |
Shift (⇧) |
Letters and digits
Section titled “Letters and digits”a to z and 0 to 9. The digits are the ones in the row above the letters.
Punctuation
Section titled “Punctuation”| Name | Key |
|---|---|
minus |
- |
equal |
= |
comma |
, |
period |
. |
slash |
/ |
backslash |
\ |
semicolon |
; |
quote |
’ |
backtick |
` |
leftbracket |
[ |
rightbracket |
] |
Editing and navigation
Section titled “Editing and navigation”| Name | Key |
|---|---|
space |
Space bar |
tab |
Tab |
return |
Return. enter is accepted as another name for the same key. |
delete |
Delete, the key that erases backwards |
esc |
Escape. escape is also accepted. |
left |
Left arrow |
right |
Right arrow |
up |
Up arrow |
down |
Down arrow |
Function keys
Section titled “Function keys”f1 to f12.
Names are positions on a US keyboard
Section titled “Names are positions on a US keyboard”A key name stands for a physical key: the one that carries that character on a US keyboard.
On another layout, slash is still the key in that position, whatever is printed on it.
When a name is wrong
Section titled “When a name is wrong”- An unknown modifier is reported as, for example,
'hyper-h': unknown modifier 'hyper' (use cmd, ctrl, option, shift). - A shortcut without a modifier is reported as
a binding needs at least one modifier. - An unknown key is reported as, for example,
binding 'option-foo': unknown key 'foo'.
Each is a warning for that one shortcut. iguana status lists them.