refactor: make keyboard dismissable on search bars

This commit is contained in:
Rainer Killinger
2022-05-27 11:56:36 +02:00
parent 9d31365d0a
commit 786abdbefa
5 changed files with 27 additions and 2 deletions

View File

@@ -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)
*/