function normalizeKeyName(key): string;Defined in: constants.ts:252
Normalizes a key name from a KeyboardEvent or a hotkey: single letters become uppercase, and the space character becomes Space. Other names are returned as written, because key names are case-sensitive.
Turkish dotless ı stays ı. Its uppercase is ASCII I, the uppercase of i, so uppercasing it would merge two different letters.
string
The key name to normalize
string
The canonical key name
normalizeKeyName('a') // 'A'
normalizeKeyName('ı') // 'ı' (Turkish dotless i)
normalizeKeyName(' ') // 'Space'
normalizeKeyName('ArrowUp') // 'ArrowUp' (already canonical)