mirror of
https://dev.azure.com/tstanciu94/NetworkResurrector/_git/NetworkResurrector_Frontend
synced 2023-05-06 14:40:17 +03:00
login with enter key
This commit is contained in:
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…
x
Reference in New Issue
Block a user