PressKeyParams
Parameters for pressKey.
Import:
import type { PressKeyParams } from 'obsidian-dev-utils/obsidian/desktop-trusted-input';Signature:
export interface PressKeyParamsProperties
| Property | Type | Description |
|---|---|---|
| key | string | The key to press, given as an Electron Accelerator key name — e.g. 'Enter', 'Escape', 'Tab', an arrow key, or a printable character ('a', '1'). |
| modifiers? | readonly Modifier[] | The modifier keys to hold, using Obsidian's Modifier names. 'Mod' resolves per-platform (Cmd on macOS, Ctrl elsewhere). |
Links to this page: