Command-Click and Shift-Click with the Keyboard on Mac
Combine a keyboard-controlled click with a modifier such as Command or Shift. The receiving app decides what that combination does, such as opening a link differently or extending a selection.
Besides using trigger.leftClick, you can also perform modifier clicks in either of these ways:
- In Element Mode, Grid Mode, Find Mode, and similar commands that already produce clicks, hold the modifier key while entering the hint. At minimum, the modifier key needs to be held when you type the final character so the resulting click keeps that modifier.
- In Command Mode, modifier keys continue to work normally. You can hold the modifier key first, then trigger
command.toggleDragtwice to produce the same modifier click effect.
What to check
Section titled “What to check”Keep the modifier held when the click is triggered. A modifier changes the click sent to the app; it does not guarantee that every app will interpret the combination in the same way.