mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Autofocus the appropriate text fields in the Create/Import/Hardware screen (#9576)
This commit is contained in:
parent
674107da3f
commit
bbd4ee5fdf
@ -91,6 +91,7 @@ class PrivateKeyImportView extends Component {
|
|||||||
onKeyPress={(e) => this.createKeyringOnEnter(e)}
|
onKeyPress={(e) => this.createKeyringOnEnter(e)}
|
||||||
onChange={() => this.checkInputEmpty()}
|
onChange={() => this.checkInputEmpty()}
|
||||||
ref={this.inputRef}
|
ref={this.inputRef}
|
||||||
|
autoFocus
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="new-account-import-form__buttons">
|
<div className="new-account-import-form__buttons">
|
||||||
|
@ -54,6 +54,7 @@ export default class NewAccountCreateForm extends Component {
|
|||||||
value={newAccountName}
|
value={newAccountName}
|
||||||
placeholder={defaultAccountName}
|
placeholder={defaultAccountName}
|
||||||
onChange={(event) => this.setState({ newAccountName: event.target.value })}
|
onChange={(event) => this.setState({ newAccountName: event.target.value })}
|
||||||
|
autoFocus
|
||||||
/>
|
/>
|
||||||
<div className="new-account-create-form__buttons">
|
<div className="new-account-create-form__buttons">
|
||||||
<Button
|
<Button
|
||||||
|
Loading…
Reference in New Issue
Block a user