ThreePipe
    Preparing search index...

    Function formatShortcut

    • A label of a shortcut (parseShortcut) for a UI: ⇧⌘Z on a Mac, Ctrl+Shift+Z on other platforms. A KeyboardEvent.code shows as its key: KeyC is C, Digit1 is 1, Backslash is \, NumpadAdd is Num +. A sign that needs Shift shows without it: Shift+? is ?.

      Parameters

      • shortcut: string

        the shortcut string. A string that does not parse is returned as it is.

      • mac: boolean = ...

        Mac labels (⌘, ⌥, ⇧). Default: the platform of the browser.

      Returns string