Allow esc key clearing, autofocus on management lists

This commit is contained in:
Michael Shamoon
2022-03-07 09:45:58 -08:00
parent 92a1b9d7f9
commit 4717057a16
4 changed files with 7 additions and 3 deletions

View File

@@ -125,4 +125,8 @@ export abstract class GenericListComponent<T extends ObjectWithId> implements On
set nameFilter(nameFilter: string) {
this.nameFilterDebounce.next(nameFilter)
}
onNameFilterKeyUp(event: KeyboardEvent) {
if (event.code == 'Escape') this.nameFilterDebounce.next(null)
}
}