diff --git a/src/app/modules/data/list/search-page.component.ts b/src/app/modules/data/list/search-page.component.ts index 3ff9da8b..9345c4e5 100644 --- a/src/app/modules/data/list/search-page.component.ts +++ b/src/app/modules/data/list/search-page.component.ts @@ -14,6 +14,7 @@ */ import {Component, Input, OnInit, OnDestroy} from '@angular/core'; import {Router} from '@angular/router'; +import {Keyboard} from '@capacitor/keyboard'; import {AlertController} from '@ionic/angular'; import { SCFacet, @@ -214,6 +215,13 @@ export class SearchPageComponent implements OnInit, OnDestroy { } } + /** + * Hides keyboard in native app environments + */ + hideKeyboard() { + Keyboard.hide(); + } + /** * Set starting values (e.g. forced filter, which can be set in components inheriting this one) */ diff --git a/src/app/modules/data/list/search-page.html b/src/app/modules/data/list/search-page.html index 2c59d484..0e27f829 100644 --- a/src/app/modules/data/list/search-page.html +++ b/src/app/modules/data/list/search-page.html @@ -12,9 +12,12 @@ diff --git a/src/app/modules/hebis/list/hebis-search-page.html b/src/app/modules/hebis/list/hebis-search-page.html index c054a6c4..f02ee4e0 100644 --- a/src/app/modules/hebis/list/hebis-search-page.html +++ b/src/app/modules/hebis/list/hebis-search-page.html @@ -12,9 +12,12 @@ diff --git a/src/app/modules/map/page/map-page.component.ts b/src/app/modules/map/page/map-page.component.ts index fc22259a..12d5fa38 100644 --- a/src/app/modules/map/page/map-page.component.ts +++ b/src/app/modules/map/page/map-page.component.ts @@ -20,6 +20,7 @@ import { ViewChild, } from '@angular/core'; import {ActivatedRoute, Router} from '@angular/router'; +import {Keyboard} from '@capacitor/keyboard'; import { AlertController, IonRouterOutlet, @@ -276,6 +277,13 @@ export class MapPageComponent { } } + /** + * Hides keyboard in native app environments + */ + hideKeyboard() { + Keyboard.hide(); + } + /** * Subscribe to needed observables and get the location status when user is entering the page */ diff --git a/src/app/modules/map/page/map-page.html b/src/app/modules/map/page/map-page.html index c6291c24..05ebcc1d 100644 --- a/src/app/modules/map/page/map-page.html +++ b/src/app/modules/map/page/map-page.html @@ -27,10 +27,13 @@