Skip to content

Hotkey

Official

A hotkey.

Import:

import type { Hotkey } from 'obsidian';

Example:

const hotkey: Hotkey = { modifiers: ['Mod'], key: 'a' };

Signature:

export interface Hotkey

Properties

Property Type Description
key string The main key of the hotkey.
modifiers Modifier[] The modifiers of the hotkey.

Links to this page: