Simulate typing a keyboard combination.
press-keys
command is used to simulate typing a keyboard combination. This is useful for triggering shortcuts or interacting with applications via keyboard input.
Argument | Type | Description |
---|---|---|
keys | YAML sequence of strings | A list of keys to press together. |
ctrl
, shift
, alt
, command
, option
, win
ctrlleft
, ctrlright
, shiftleft
, shiftright
, altleft
, altright
,
optionleft
, optionright
, winleft
, winright
press-keys
command is ideal for automating workflows that rely on keyboard shortcuts.