diff --git a/ui/app/components/app/modals/add-to-addressbook-modal/add-to-addressbook-modal.component.js b/ui/app/components/app/modals/add-to-addressbook-modal/add-to-addressbook-modal.component.js index 1ce9e8a06..64161a632 100644 --- a/ui/app/components/app/modals/add-to-addressbook-modal/add-to-addressbook-modal.component.js +++ b/ui/app/components/app/modals/add-to-addressbook-modal/add-to-addressbook-modal.component.js @@ -31,7 +31,7 @@ export default class AddToAddressBookModal extends Component { } onKeyPress = e => { - if (e.keyCode === 13 && this.state.alias) { + if (e.key === 'Enter' && this.state.alias) { this.onSave() } }