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:
commit
24eef428ce
@ -30,6 +30,7 @@ function mapDispatchToProps (dispatch) {
|
|||||||
|
|
||||||
inherits(PrivateKeyImportView, Component)
|
inherits(PrivateKeyImportView, Component)
|
||||||
function PrivateKeyImportView () {
|
function PrivateKeyImportView () {
|
||||||
|
this.createKeyringOnEnter = this.createKeyringOnEnter.bind(this)
|
||||||
Component.call(this)
|
Component.call(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,7 +47,7 @@ PrivateKeyImportView.prototype.render = function () {
|
|||||||
h('input.new-account-import-form__input-password', {
|
h('input.new-account-import-form__input-password', {
|
||||||
type: 'password',
|
type: 'password',
|
||||||
id: 'private-key-box',
|
id: 'private-key-box',
|
||||||
onKeyPress: () => this.createKeyringOnEnter(),
|
onKeyPress: e => this.createKeyringOnEnter(e),
|
||||||
}),
|
}),
|
||||||
|
|
||||||
]),
|
]),
|
||||||
|
Loading…
Reference in New Issue
Block a user