Set keyboard shortcut for randomize button (#13).

pull/19/head
Atul Varma 2021-02-20 11:07:57 -05:00
rodzic 6ab5e380dd
commit 5c97a0e646
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -365,7 +365,9 @@ export const CreaturePage: React.FC<{}> = () => {
<h1>Creature!</h1>
<SymbolContextWidget ctx={symbolCtx} onChange={setSymbolCtx} />
<p>
<button onClick={() => setRandomSeed(Date.now())}>Randomize!</button>{" "}
<button accessKey="r" onClick={() => setRandomSeed(Date.now())}>
<u>R</u>andomize!
</button>{" "}
<button onClick={() => window.location.reload()}>Reset</button>{" "}
<button onClick={handleSvgExport}>Export SVG</button>
</p>