diff --git a/src/App.tsx b/src/App.tsx index 42d9d1a..42f7b44 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -50,11 +50,11 @@ export function App() { window.onkeydown = onKeyDown; }, []); - const commands = [ - ["call" , "[c] call" ], - ["eval" , "[e] [Tab] [Enter] eval"], - ["transform", "[t] [.] transform" ], - ["let" , "[l] [=] let ... in ..." ], + const commands: [string, string[], string][] = [ + ["call" , ['c' ], "call" ], + ["eval" , ['e','Tab','Enter' ], "eval" ], + ["transform", ['t', '.' ], "transform" ], + ["let" , ['l', '=', 'a' ], "let ... in ..."], ]; const [highlighted, setHighlighted] = useState( @@ -74,8 +74,9 @@ export function App() { Commands: { - commands.map(([_, descr], i) => + commands.map(([_, keys, descr], i) => + {keys.map((key, j) => {key})} {descr} ) } @@ -91,6 +92,8 @@ export function App() { filter={() => true} /> + +