diff options
author | Dan <danjm.com@gmail.com> | 2018-04-05 07:48:12 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-04-05 07:48:12 +0800 |
commit | 6ecf2c8092e11c9b467dabfad36fb61c6f80e371 (patch) | |
tree | feb68ae88988b730584f7c21d00cbeab4c3a5a8e /ui/app/accounts/import | |
parent | 1153120fe84e9d4cde47a7e416028be0fec3c61c (diff) | |
download | tangerine-wallet-browser-6ecf2c8092e11c9b467dabfad36fb61c6f80e371.tar.gz tangerine-wallet-browser-6ecf2c8092e11c9b467dabfad36fb61c6f80e371.tar.zst tangerine-wallet-browser-6ecf2c8092e11c9b467dabfad36fb61c6f80e371.zip |
event object actually passed to this.createKeyringOnEnter in private-key.js
Diffstat (limited to 'ui/app/accounts/import')
-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), }), ]), |