J JSanta New Member Licensed User Longtime User Oct 27, 2015 #1 Hi All, this is my first post, so I do apologize if I am making anything wrong... question is how to avoid that the virtual keyboard be shown whenever a HTLM textBox inside the Webview gets the focus. I have tried: SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden) but it didn't work in my case. (question in https://www.b4x.com/android/forum/threads/how-do-i-disable-keyboard-for-webview.48264/#content) Use IME to hide it, but the problem here is that the keyboard is shown and then after hidden causing an effect that is not accepted by customer I have searched in forum and no anwser solved my problem. Any help would be pretty much appreciated. Thanks
Hi All, this is my first post, so I do apologize if I am making anything wrong... question is how to avoid that the virtual keyboard be shown whenever a HTLM textBox inside the Webview gets the focus. I have tried: SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden) but it didn't work in my case. (question in https://www.b4x.com/android/forum/threads/how-do-i-disable-keyboard-for-webview.48264/#content) Use IME to hide it, but the problem here is that the keyboard is shown and then after hidden causing an effect that is not accepted by customer I have searched in forum and no anwser solved my problem. Any help would be pretty much appreciated. Thanks
Erel B4X founder Staff member Licensed User Longtime User Oct 28, 2015 #2 I don't think that it is possible. The windowSoftInputMode is not relevant in this case. Your best option is to catch the HeightChanged event and hide the keyboard. Upvote 0
I don't think that it is possible. The windowSoftInputMode is not relevant in this case. Your best option is to catch the HeightChanged event and hide the keyboard.