Softkeyboard doesn't show up on GWT when using from a phone.
See original GitHub issueIssue details
Gdx.input.setOnscreenKeyboardVisible(true);
doesn’t work on GWT when using from a phone.
Reproduction steps/code
Will add repro later.
Version of LibGDX and/or relevant dependencies
1.9.3 or latest
Please select the affected platforms
- HTML/GWT
- Mobile
Possible Fix
It should be possible to add a fake <input type="text>
and focus it.
This should bring up the keyboard on most platforms.
First reported here http://www.badlogicgames.com/forum/viewtopic.php?f=12&t=18011
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
7 Best Fixes for Android Keyboard Not Showing Error
Does the Android keyboard fail to load up properly for you? Read the troubleshooting guide to fix the issue.
Read more >Working with the Soft Keyboard | CodePath Android Cliffnotes
The Android system shows an on-screen keyboard, known as a soft input method, when a text field in your UI receives focus. To...
Read more >android soft keyboard doesn't show - Stack Overflow
No matter how many times I click on it, the keyboard won't pop up. After I close out of the app and re-open...
Read more >chrome on android - soft keyboard doesn't show #22 - GitHub
When using Chrome on android (Samsung Galaxy S3), the search input box doesn't cause the soft keyboard to display.
Read more >Get to know the touch keyboard - Microsoft Support
To open the touch keyboard · Select Start > Settings >Personalization > Taskbar > Taskbar corner icons, then make sure Touch keyboard is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I really hope libGDX change direction regarding mobile, WebGL is very mature nowadays, please look at http://venturebeat.com/2016/11/28/html5-is-the-next-100-billion-game-platform/ and try the game (not ours). We have the below site with spine, shader and actions and running 55-60 fps.
We took different direction regarding editing (Overlay Native Editing) and we solved almost all problems regarding keyboard, please try http://demo.doit.com.sa this basically adding HTML input on-top of LibGDX after edited we setText(…), this way we avoid predictive keyboard problems (compositionstart compositionupdate compositionend) and also access different type of keyboards (i.e. tel, text, email, etc. ).
Please scroll to the bottom of the site (http://demo.doit.com.sa)
Regarding this issue the correct and cross platform way to open the keyboard is to issue “focus()” on native html input(text), we set this to absolute and top:-1000px , also important to note that iOS (8.0+) will only open keyboard if executed from within user action and for that you need to run this from “touchDown” in libGDX (very important).
@doit-ceo if you created a modular solution to this problem, would you mind sharing the code somewhere so we can contribute and use it?