I'm creating an App with Electron and Ionic (in the future all will be on ionic only) but i can't use the ionic Keyboard on text area.
I try to use the ionic Keyboard included in Ionic v4 like that:
app.module.ts
import { Keyboard } from '@ionic-native/keyboard/ngx';
@NgModule({
[...]
],
providers: [
(...),
Keyboard
],
});
my-page.ts
import { Keyboard } from '@ionic-native/keyboard/ngx';
import { IonInput } from '@ionic/angular';
@ViewChild('InputK') InputK: IonInput;
constructor( private keyboard: Keyboard) {
}
public showKeyboard(){
this.keyboard.setFocus()
}
On the input in my html i just put #InputK (click)=‘showKeyboard()’ but i won’t work…
I’ve you got solution for this kind of problem ?
Kind Regards for your time.
I don't get any error code, it just do nothing.