1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00

Merge pull request #3883 from danjm/i3685-define-event-privatekey-import

event object actually passed to this.createKeyringOnEnter in private-key.js
This commit is contained in:
kumavis 2018-04-05 15:07:44 -07:00 committed by GitHub
commit 24eef428ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),
}),
]),