Skip to content

PressKeyParams

Parameters for pressKey.

Import:

import type { PressKeyParams } from 'obsidian-dev-utils/obsidian/desktop-trusted-input';

Signature:

export interface PressKeyParams

Properties

PropertyTypeDescription
keystringThe 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: