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