Skip to content

HotkeyManager.printHotkeyForCommand method

HotkeyManager › printHotkeyForCommand

Unofficial

Pretty-print hotkey of a command.

Signature:

printHotkeyForCommand(commandId: string): string

Parameters:

ParameterTypeDescription
commandIdstring{@link obsidian#Command} ID to print hotkey for.

Returns: stringThe formatted hotkey string.