Both canonical strings a keyboard event could match (from e.code and from e.key) — the counterpart to keyStrokeToCanonical. A shortcut matches the event when its canonical form is in this set.
e.code
e.key
Both canonical strings a keyboard event could match (from
e.codeand frome.key) — the counterpart to keyStrokeToCanonical. A shortcut matches the event when its canonical form is in this set.