autofocus coz i'm a cross dev
This commit is contained in:
parent
8993f73709
commit
254ce13b88
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,7 @@ const App: React.FC = () => {
|
|||
);
|
||||
} else {
|
||||
return (
|
||||
<div>
|
||||
<div style={{marginLeft:"1.5%"}}>
|
||||
<h1>Welcome to showplanner2</h1>
|
||||
<input
|
||||
type="text"
|
||||
|
@ -41,6 +41,7 @@ const App: React.FC = () => {
|
|||
value={inputVal}
|
||||
onChange={e => setInputVal(e.target.value)}
|
||||
onKeyPress={e=>enterKeyCont(e.key)}
|
||||
autoFocus
|
||||
/>
|
||||
<button onClick={cont}>Continue</button>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue