lundi 30 novembre 2020

How can i test this @HostListener?

I got this code and i dont know how to test it

@HostListener('document:keydown.escape', ['$event']) onKeydownHandler(event: KeyboardEvent) {
if (this.activeMapTool === this.mapToolEnum.GEOTAG) {
  this.addingGeotag.emit();
}
this.activeMapTool = this.mapToolEnum.NONE;

}

Could you help me?

Aucun commentaire:

Enregistrer un commentaire