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:
parent
b7eae4ba80
commit
1b33d7fd4c
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user