event object actually passed to this.createKeyringOnEnter in private-key.js

feature/default_network_editable
Dan 7 years ago
parent 1153120fe8
commit 6ecf2c8092
  1. 3
      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),
}),
]),

Loading…
Cancel
Save