Browse Source

Merge pull request #612 from pajasevi/f/login-keypress

feat(onboarding): allow login with Enter key press
renovate/lint-staged-8.x
Ben Woosley 7 years ago
committed by GitHub
parent
commit
8915f3bfc1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      app/components/Onboarding/Login.js

5
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)
}
}}
/>
<p className={`${unlockWalletError.isError && styles.active} ${styles.error}`}>
{unlockWalletError.message}

Loading…
Cancel
Save