refactor: add typing and remove deprecated keycode method

This commit is contained in:
jdegand
2024-03-30 22:50:49 -04:00
parent e8ecec98f0
commit c61f581a79

View File

@@ -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 = '';
}