I am using the following method to detect keypresses on a page. My plan is to detect when the Escape key is pressed and run a method if so. For the moment I am just attempti
In my case (with Angular 10) keydown.escape works fine to track event escape by console.log():
keydown.escape
escape
@HostListener('keydown.escape') fn() { console.log(); }
But Angular change detector work fine only with keyup.escape.
keyup.escape