Try login when user presses enter on password field

This commit is contained in:
Leonardo Murça 2023-11-19 16:57:02 -03:00
parent f7570c5847
commit 5c5aec1d94

View file

@ -63,6 +63,7 @@ function View({
type="password"
value={password}
onChange={e => onChangePassword(e.target.value)}
onKeyDown={e => (e.key === 'Enter' ? onTryLogin() : null)}
/>
<Button
disabled={!isSubmitable}