five-on-it / apps/client/src/ui/bindings / keyLabel
Function: keyLabel()
keyLabel(
code,names?):string
Defined in: apps/client/src/ui/bindings.ts:170
How a key is written for people: KeyW W, Digit1 1, ArrowUp ↑, Period ., ShiftLeft Shift, Numpad4 Num 4; a key names knows (in the player's language: Space, Spazio) by that name.
Parameters
code
string
names?
(code) => string | undefined
Returns
string