formatHotkey
Formats a hotkey the way Obsidian’s hotkey settings show it: Ctrl + Shift + P, or ⌘⇧P on macOS.
Import:
import { formatHotkey } from '@mnaoumov/obsidian-lib/hotkey';Signature:
function formatHotkey(params: FormatHotkeyParams): stringParameters:
| Parameter | Type | Description |
|---|---|---|
params |
FormatHotkeyParams | The parameters. |
Returns: string — The display string.
Links to this page: