Skip to content

five-on-it / apps/client/src/ui/bindings / translator

Function: translator() ​

translator(bindings): (code) => string | undefined

Defined in: apps/client/src/ui/bindings.ts:157

The keyboard's translation for some bindings: a pressed code to the code the game reads for it (the default own key of the action it is bound to), the fixed keys as they are, and undefined for a key the game should not see (a default key now bound to nothing).

Parameters ​

bindings ​

Bindings

Returns ​

(code) => string | undefined