This, or perhaps a keydown event, goes in the template on an input control...
(keyup)="getKeyCode($event)"
And on the TypeScript side of a component...
getKeyCode(event:any):void { alert(event.keyCode); }
No comments:
Post a Comment