From 5c5aec1d944a8b15dc7bd33b77c6957bd1a05cdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= Date: Sun, 19 Nov 2023 16:57:02 -0300 Subject: [PATCH] Try login when user presses enter on password field --- src/screens/Login/View.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/screens/Login/View.js b/src/screens/Login/View.js index b991509..260c971 100644 --- a/src/screens/Login/View.js +++ b/src/screens/Login/View.js @@ -63,6 +63,7 @@ function View({ type="password" value={password} onChange={e => onChangePassword(e.target.value)} + onKeyDown={e => (e.key === 'Enter' ? onTryLogin() : null)} />