Search bar fixes.

This commit is contained in:
softsimon
2022-08-30 22:36:13 +02:00
parent 0dfda66578
commit a2e6b265d3
3 changed files with 9 additions and 1 deletions

View File

@@ -25,6 +25,13 @@ export class SearchResultsComponent implements OnChanges {
}
}
searchButtonClick() {
if (this.resultsFlattened[this.activeIdx]) {
this.selectedResult.emit(this.resultsFlattened[this.activeIdx]);
this.results = null;
}
}
handleKeyDown(event: KeyboardEvent) {
switch (event.key) {
case 'ArrowDown':