Skip to content

Function formatShortcut()

formatShortcut(shortcut: string[]): string

Source: keyboard.utils.ts

Formats a shortcut (combination of keys) into a human-readable format.

For a list of valid key values, refer to this page: https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values

Parameters

shortcut

string[]

Returns

string

Built by Prozilla