I try to listen to keyboard events on a component inside div[contenteditable=true]. why is it not working?
plunk http://plnkr.co/edit/Tjmihqc1r5UrS3XJ3QQ0?p=preview
template:
<div contenteditable="true"> <h2 (keydown)="log($event)" (keyup)="log($event)" (keypress)="log($event)" (click)="log($event)">Hello {{name}}</h2> </div>
click - work
keydown,keyup,keypress - not work
UPDATE: I discovered that the problem does not apply to angular 2 its contenteditable related Keypress event on nested content editable (jQuery)