charton API / @chart-on/core / index / normalizeShortcut
Function: normalizeShortcut()
normalizeShortcut(
text):string
Defined in: packages/core/src/actions.ts:187
The canonical form of a shortcut, e.g. normalizeShortcut('shift+ctrl+z') is 'Ctrl+Shift+Z'. Throws a RangeError for text that is not a shortcut.
Parameters
text
string
Returns
string