From bbd4ee5fdfee8c879273445bd6223c5db96f6faa Mon Sep 17 00:00:00 2001 From: David Walsh Date: Wed, 14 Oct 2020 11:43:26 -0500 Subject: [PATCH] Autofocus the appropriate text fields in the Create/Import/Hardware screen (#9576) --- ui/app/pages/create-account/import-account/private-key.js | 1 + ui/app/pages/create-account/new-account.component.js | 1 + 2 files changed, 2 insertions(+) diff --git a/ui/app/pages/create-account/import-account/private-key.js b/ui/app/pages/create-account/import-account/private-key.js index cbc155f81..d3c4240f8 100644 --- a/ui/app/pages/create-account/import-account/private-key.js +++ b/ui/app/pages/create-account/import-account/private-key.js @@ -91,6 +91,7 @@ class PrivateKeyImportView extends Component { onKeyPress={(e) => this.createKeyringOnEnter(e)} onChange={() => this.checkInputEmpty()} ref={this.inputRef} + autoFocus />
diff --git a/ui/app/pages/create-account/new-account.component.js b/ui/app/pages/create-account/new-account.component.js index ef811a84f..9995b28ab 100644 --- a/ui/app/pages/create-account/new-account.component.js +++ b/ui/app/pages/create-account/new-account.component.js @@ -54,6 +54,7 @@ export default class NewAccountCreateForm extends Component { value={newAccountName} placeholder={defaultAccountName} onChange={(event) => this.setState({ newAccountName: event.target.value })} + autoFocus />