question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Softkeyboard doesn't show up on GWT when using from a phone.

See original GitHub issue

Issue 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:closed
  • Created 7 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
doit-ceocommented, Dec 4, 2016

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).

0reactions
Emperorloucommented, Apr 19, 2018

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found