diff --git a/apps/performance/default-onpush/src/app/person-list.component.ts b/apps/performance/default-onpush/src/app/person-list.component.ts index c4f5569..04574d5 100644 --- a/apps/performance/default-onpush/src/app/person-list.component.ts +++ b/apps/performance/default-onpush/src/app/person-list.component.ts @@ -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 = ''; }