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 {
|
} 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>
|
||||||
|
|
Loading…
Reference in a new issue