From 8faf449b7cd6c3fceb28bac4fb96837f1a9abd2b Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 2 Apr 2024 13:55:54 -0700 Subject: [PATCH] Fix keyboard nav inside search input --- .../app-frame/global-search/global-search.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/app-frame/global-search/global-search.component.ts b/src-ui/src/app/components/app-frame/global-search/global-search.component.ts index 7d8992677..ff143a39e 100644 --- a/src-ui/src/app/components/app-frame/global-search/global-search.component.ts +++ b/src-ui/src/app/components/app-frame/global-search/global-search.component.ts @@ -58,7 +58,11 @@ export class GlobalSearchComponent { this.searchInput.nativeElement.focus() } - if (this.searchResults && this.resultsDropdown.isOpen()) { + if ( + this.searchResults && + this.resultsDropdown.isOpen() && + document.activeElement !== this.searchInput.nativeElement + ) { if (event.key === 'ArrowDown') { if (this.currentItemIndex < this.searchResults.total - 1) { this.currentItemIndex++