@jageronionic wrote:
Hello,
Currently in a project which work with Electron and Ionic, i am trying to use an ionic keyboard to be able to write in a input.
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('input') InputK: IonInput; constructor( private keyboard: Keyboard) { } public showKeyboard(){ this.keyboard.setFocus() }
On the input in my html i just put (click)=‘showKeyboard()’ but i won’t work…
I’ve you got solution for this kind of problem ?
Kind Regards for your time.
Posts: 1
Participants: 1