1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

Autofocus the appropriate text fields in the Create/Import/Hardware screen (#9576)

This commit is contained in:
David Walsh 2020-10-14 11:43:26 -05:00 committed by GitHub
parent 674107da3f
commit bbd4ee5fdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,7 @@ class PrivateKeyImportView extends Component {
onKeyPress={(e) => this.createKeyringOnEnter(e)}
onChange={() => this.checkInputEmpty()}
ref={this.inputRef}
autoFocus
/>
</div>
<div className="new-account-import-form__buttons">

View File

@ -54,6 +54,7 @@ export default class NewAccountCreateForm extends Component {
value={newAccountName}
placeholder={defaultAccountName}
onChange={(event) => this.setState({ newAccountName: event.target.value })}
autoFocus
/>
<div className="new-account-create-form__buttons">
<Button