From 2fa918c8eb2a8fe90cb2589a347b5431b8b11efd Mon Sep 17 00:00:00 2001 From: sevcik Date: Thu, 26 Jul 2018 10:45:20 +0200 Subject: [PATCH] feat(onboarding): allow login with Enter key press --- app/components/Onboarding/Login.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/components/Onboarding/Login.js b/app/components/Onboarding/Login.js index 83a68209..369ae0fc 100644 --- a/app/components/Onboarding/Login.js +++ b/app/components/Onboarding/Login.js @@ -11,6 +11,11 @@ const Login = ({ password, updatePassword, unlockingWallet, unlockWallet, unlock ref={input => input && input.focus()} value={password} onChange={event => updatePassword(event.target.value)} + onKeyPress={event => { + if (event.key === 'Enter') { + unlockWallet(password) + } + }} />

{unlockWalletError.message}