SetKeyboardFocus not working in 4.18
The SetKeyboardFocus functions seems not work in 4.18. I created a widget with a text box. when I tap it, the keyboard shows up, but when I commit the text it goes alway. The commit lose focus option was disabled already. I tried to create a function to regain focus in the text box so the keyboard would be always visible but it's not working. Also tried in a new blank project.
Tried applying delays, User Focus, Set UI mode only. nothing worked :/ It was working fine in 4.16
asked Nov 03 '17 at 07:02 AM in Bug Reports
Thanks for your patience as I looked into this issue for you.
The issue here is that just because the text box has focus, this doesn't necessarily mean that Android is going to launch the virtual keyboard. I am not exactly sure why the method you were using in 4.16 worked, but that is not how this should be implemented.
From my research, there are two ways that you can do this. The most effective way would be to just build your own virtual keyboard as part of your UI. This will allow you complete control over when and where it displays, as well as how it will interact with the rest of your game.
The other option would be to tell Android to always show the virtual keyboard. This needs to be done using Java, and I found some information on doing this here: (Solution 3)
My recommendation would be to build a virtual keyboard as part of your UI, as this would be the cleanest way to implement what you are trying to do.
answered Nov 14 '17 at 02:15 PM
Tyler X ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here