I'm trying to add a feature to an existing electron app that uses Angular -- basically I just inject my script once the app is loaded. I want to adding a hotkey to speed up my workflow, the hotkey would virtually click an edit button, append some text to a textarea, and click a save button. The clicks work fine, but the change I make to the text field vanishes when it clicks save, and I gather this is because it's an Angular app and it's not detecting the change to the textarea. I don't speak Angular and I'm a bit baffled trying to understand enough.
I see methods like ChangeDetectorRef.detectChanges which seems relevant but as I'm outside the Angular code I've got no idea how to get a handle to the relevant ChangeDetectorRef to make that call.