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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
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} |
|
|
|