mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 08:33:11 +00:00
@@ -406,8 +406,21 @@ export class MapPageComponent {
|
||||
this.ref.detectChanges();
|
||||
}
|
||||
|
||||
/**
|
||||
* On enter key up do the search
|
||||
*
|
||||
* @param event Keyboard keyup event
|
||||
*/
|
||||
searchKeyUp(event: KeyboardEvent) {
|
||||
if (event.key === 'Enter') {
|
||||
this.searchStringChanged((event.target as HTMLInputElement).value);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Search event of search bar
|
||||
*
|
||||
* @param queryText New query text to be set
|
||||
*/
|
||||
searchStringChanged(queryText?: string) {
|
||||
this.queryText = queryText || '';
|
||||
|
||||
Reference in New Issue
Block a user