Skip to content

HotkeyManager.printHotkeyForCommand method

HotkeyManager › printHotkeyForCommand

Unofficial

Pretty-print hotkey of a command.

Signature:

printHotkeyForCommand(commandId: string): string

Parameters:

Parameter Type Description
commandId string {@link obsidian#Command} ID to print hotkey for.

Returns: stringThe formatted hotkey string.