Skip to content

Commit

Permalink
Merge pull request #715 from jdegand/default-onpush-keycode
Browse files Browse the repository at this point in the history
refactor: add typing and remove deprecated keycode method
  • Loading branch information
tomalaforge authored Mar 31, 2024
2 parents 108c775 + c61f581 commit 042541c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export class PersonListComponent {

label = '';

handleKey(event: any) {
if (event.keyCode === 13) {
handleKey(event: KeyboardEvent) {
if (event.key === 'Enter') {
this.names?.unshift(this.label);
this.label = '';
}
Expand Down

0 comments on commit 042541c

Please sign in to comment.