diff options
Diffstat (limited to 'client/src/app/header/search-typeahead.component.ts')
-rw-r--r-- | client/src/app/header/search-typeahead.component.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/header/search-typeahead.component.ts b/client/src/app/header/search-typeahead.component.ts index e10baea2b..0794ec8f4 100644 --- a/client/src/app/header/search-typeahead.component.ts +++ b/client/src/app/header/search-typeahead.component.ts | |||
@@ -152,7 +152,7 @@ export class SearchTypeaheadComponent implements OnInit, AfterViewChecked, OnDes | |||
152 | } | 152 | } |
153 | } | 153 | } |
154 | 154 | ||
155 | onSuggestionlicked (payload: SuggestionPayload) { | 155 | onSuggestionClicked (payload: SuggestionPayload) { |
156 | this.doSearch(this.buildSearchTarget(payload)) | 156 | this.doSearch(this.buildSearchTarget(payload)) |
157 | } | 157 | } |
158 | 158 | ||
@@ -170,6 +170,11 @@ export class SearchTypeaheadComponent implements OnInit, AfterViewChecked, OnDes | |||
170 | 170 | ||
171 | this.keyboardEventsManager.onKeydown(event) | 171 | this.keyboardEventsManager.onKeydown(event) |
172 | break | 172 | break |
173 | |||
174 | case 'Enter': | ||
175 | event.stopPropagation() | ||
176 | this.doSearch() | ||
177 | break | ||
173 | } | 178 | } |
174 | } | 179 | } |
175 | 180 | ||