Android soft keyboard will hide for no reason

前端 未结 1 1518
后悔当初
后悔当初 2020-12-21 03:35

I\'m having the following issue - I have placed

android:windowSoftInputMode = \"stateAlwaysVisible\"

in my manifest which works relatively

相关标签:
1条回答
  • 2020-12-21 04:21

    The issue was that the keyboard is hiding due to the fact that we were passing all the touch events down to javascript we are having via loadUrl("javascript : bar(event.getX(), event.getY()));".

    Turns out the loadUrl method internally hides the software keyboard. I worked this around by not passing the touch events to the javascript, but instead by using window.onmousemove

    0 讨论(0)
提交回复
热议问题