2
I know it’s possible to identify when a person clicks on a particular element of the screen for the first time, but if that were to improve.
How could I identify if the mobile phone keyboard is open when someone click a text field through the mobile browser, for example?
There is a way to do this through javascript?
<script>
function seiQueAbriuOTeclado() {
//aqui sabemos que ele abriu, mas por dedução, porque sabemos que ele clicou...
}
</script>
<form>
<input onclick="seiQueAbriuOTeclado()">
</form>
I wonder if there is a way to access via webview some plugin that does this relationship with Cordova, as Ionic framework does.
From what I understand it is not possible to check if the keyboard is open without deduction. What you can do is a system for the event of Focus in elements that opens the keyboard and a system for the event of Blur in elements that the keyboard closes to thus have a control.
– Lucas Simao