login with enter key
parent
7f6056baf4
commit
79c71f86b8
|
@ -43,6 +43,9 @@ const LoginComponent = ({ credentials, onChange, onLogin }) => {
|
||||||
className={classes.field}
|
className={classes.field}
|
||||||
onChange={onChange("password")}
|
onChange={onChange("password")}
|
||||||
value={credentials.password}
|
value={credentials.password}
|
||||||
|
onKeyDown={e => {
|
||||||
|
if (e.key === "Enter") onLogin();
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
<CardActions>
|
<CardActions>
|
||||||
|
|
Loading…
Reference in New Issue