five-on-it / apps/client/src/ui/KeysList
apps/client/src/ui/KeysList
The key legend: one row per binding, the key cap in a column of its own, every word from the i18next resources, the keys named as the player has bound them (k.<action>, bindings.ts). Given the settings (the Controls screen of the main menu and the pause menu), every row with actions of its own has a button per action: pressed, it waits for a key, which becomes the action's (a key another action had swaps with it, and says so; Esc gives up; the fixed keys cannot be taken), and a button at the end puts every key back.