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