formatShortcut function

Module @runic-artifex/views in @runic-artifex/views 0.23.0

function formatShortcut(shortcut: string | Shortcut, options?: ShortcutOptions): string;

The shortcut as the platform shows it, such as ⇧⌘S on Apple platforms and Ctrl+Shift+S elsewhere; "" for invalid text. Key and modifier names, such as Ctrl and Page Up, are in the window's language when the page has Runic's text (configureRunicText); letters, digits and symbols are shown as they are.