diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-04-06 06:07:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-06 06:07:44 +0800 |
commit | 24eef428cea095f9700dcf290ba90b8bd2a83840 (patch) | |
tree | a324dd88b1625c487c9e11529da2d99484e56ad3 /ui | |
parent | 741c6097a2cead5447da8af7e5f9dae71740eb5c (diff) | |
parent | 6ecf2c8092e11c9b467dabfad36fb61c6f80e371 (diff) | |
download | tangerine-wallet-browser-24eef428cea095f9700dcf290ba90b8bd2a83840.tar tangerine-wallet-browser-24eef428cea095f9700dcf290ba90b8bd2a83840.tar.gz tangerine-wallet-browser-24eef428cea095f9700dcf290ba90b8bd2a83840.tar.bz2 tangerine-wallet-browser-24eef428cea095f9700dcf290ba90b8bd2a83840.tar.lz tangerine-wallet-browser-24eef428cea095f9700dcf290ba90b8bd2a83840.tar.xz tangerine-wallet-browser-24eef428cea095f9700dcf290ba90b8bd2a83840.tar.zst tangerine-wallet-browser-24eef428cea095f9700dcf290ba90b8bd2a83840.zip |
Merge pull request #3883 from danjm/i3685-define-event-privatekey-import
event object actually passed to this.createKeyringOnEnter in private-key.js
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/accounts/import/private-key.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/accounts/import/private-key.js b/ui/app/accounts/import/private-key.js index 006131bdc..0d2898cda 100644 --- a/ui/app/accounts/import/private-key.js +++ b/ui/app/accounts/import/private-key.js @@ -30,6 +30,7 @@ function mapDispatchToProps (dispatch) { inherits(PrivateKeyImportView, Component) function PrivateKeyImportView () { + this.createKeyringOnEnter = this.createKeyringOnEnter.bind(this) Component.call(this) } @@ -46,7 +47,7 @@ PrivateKeyImportView.prototype.render = function () { h('input.new-account-import-form__input-password', { type: 'password', id: 'private-key-box', - onKeyPress: () => this.createKeyringOnEnter(), + onKeyPress: e => this.createKeyringOnEnter(e), }), ]), |