cmd+c), and hold/release modifiers. These work at the application level, not the element level.
Overview
press
Send key combo (return, escape, cmd+s, shift+tab)
key-down
Hold a key or modifier down
key-up
Release a held key or modifier
Key Syntax
Single Keys
Key Combos with Modifiers
Use+ to combine modifiers with keys:
cmd, ctrl, alt, shift
Multi-Modifier Combos
Common Patterns
Save Current Document
Copy/Paste
Undo/Redo
Navigate Dialogs
Hold Modifier for Multi-Selection
Spotlight Search
Examples
Use Cases
Keyboard Navigation
Keyboard Navigation
Shortcuts
Shortcuts
Trigger application shortcuts:
Multi-Selection
Multi-Selection
Hold shift or cmd while clicking:
Text Editing
Text Editing
Use keyboard shortcuts for editing:
Supported Keys
Printable Keys
All alphanumeric characters:a-z, 0-9, and symbols.
Special Keys
return,enterescape,esctabspacedelete,backspaceup,down,left,righthome,endpageup,pagedown
Function Keys
f1 through f12
Modifiers
cmd(Command/⌘)ctrl(Control)alt(Option/⌥)shift(Shift/⇧)
Error Handling
Common error codes:INVALID_ARGS: Unrecognized key name or malformed comboACTION_FAILED: OS rejected the key event (rare)