I am running Angular 7.x - I have the following ngOnChanges lifeCycle hook and I need to determine if the user has pressed the [ENTER] key and if so pass this boolean value to the processLinks() below as a boolean value - what is the best way to do this as I am unsure of how this is done?
ngOnChanges(changes: SimpleChanges){
console.log(changes);
if(changes.text) {
this.process();
}
}