autofocus coz i'm a cross dev

This commit is contained in:
thekingofjibs 2020-03-18 17:18:45 +00:00 committed by Marks Polakovs
parent 8993f73709
commit 254ce13b88

View file

@ -33,7 +33,7 @@ const App: React.FC = () => {
); );
} else { } else {
return ( return (
<div> <div style={{marginLeft:"1.5%"}}>
<h1>Welcome to showplanner2</h1> <h1>Welcome to showplanner2</h1>
<input <input
type="text" type="text"
@ -41,6 +41,7 @@ const App: React.FC = () => {
value={inputVal} value={inputVal}
onChange={e => setInputVal(e.target.value)} onChange={e => setInputVal(e.target.value)}
onKeyPress={e=>enterKeyCont(e.key)} onKeyPress={e=>enterKeyCont(e.key)}
autoFocus
/> />
<button onClick={cont}>Continue</button> <button onClick={cont}>Continue</button>
</div> </div>