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

Fixes use of 'Enter' key to save contact in address book modal (#6946)

This commit is contained in:
Dan J Miller 2019-08-02 10:24:45 -02:30 committed by Whymarrh Whitby
parent b7eae4ba80
commit 1b33d7fd4c

View File

@ -31,7 +31,7 @@ export default class AddToAddressBookModal extends Component {
} }
onKeyPress = e => { onKeyPress = e => {
if (e.keyCode === 13 && this.state.alias) { if (e.key === 'Enter' && this.state.alias) {
this.onSave() this.onSave()
} }
} }