Set keyboard shortcut for randomize button (#13).
rodzic
6ab5e380dd
commit
5c97a0e646
|
@ -365,7 +365,9 @@ export const CreaturePage: React.FC<{}> = () => {
|
||||||
<h1>Creature!</h1>
|
<h1>Creature!</h1>
|
||||||
<SymbolContextWidget ctx={symbolCtx} onChange={setSymbolCtx} />
|
<SymbolContextWidget ctx={symbolCtx} onChange={setSymbolCtx} />
|
||||||
<p>
|
<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={() => window.location.reload()}>Reset</button>{" "}
|
||||||
<button onClick={handleSvgExport}>Export SVG</button>
|
<button onClick={handleSvgExport}>Export SVG</button>
|
||||||
</p>
|
</p>
|
||||||
|
|
Ładowanie…
Reference in New Issue