Hi, I am trying to implement ecel like navigation with a directive.
I am not able to propagate an enter event when keydown is pressed . What is the prefered way ? @HostListener('keydown.arrowup', ['$event']) @HostListener('keydown.arrowdown', ['$event']) @HostListener('keydown.arrowright', ['$event']) @HostListener('keydown.arrowleft', ['$event']) onkeydown(event : KeyboardEvent) { let right = 39; let down = 40; //event.stopPropagation(); //event.preventDefault(); if (event.keyCode == 40) { let k = new KeyboardEvent('keydown',{"key":"Enter"}); this.el.nativeElement.dispatchEvent(k); } } Regards, S.Ancelot -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.