Search Docs
Loading...
Skip to content

Function: normalizeKeyCombo

function normalizeKeyCombo(combo): string;

Convert a combo into the internal canonical form (sorted modifiers, lowercase letters, Mod for Cmd/Ctrl). Exposed so hosts can match against it.

A combo that is only whitespace is the Space key (the W3C ' ' value); it is normalized to Space rather than split on whitespace as a sequence.

Parameters#

ParameterType
combostring

Returns#

string