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.

Android - Google US English keyboard backspace not working

See original GitHub issue

Android 4.3.1 Nexus 7 (2013) When in a text field, backspace on the Google US English keyboard (I believe it’s default for this device) does nothing. I wrote the below code in an InputProcessor to try to chase the bug, but it never even catches the backspace.

public boolean keyDown(int keycode) {
            Tools.log.debug("keyDown: " + keycode);

I switched to another keyboard and backspace was caught just fine. Also verified google keyboard backspace works in other apps.

However, I’m not sure the problem is with libgdx.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:24 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
farcommented, Nov 25, 2013

I have this filter on TextField:

            public boolean acceptChar(TextField f, char c) {                
                return Character.isLetterOrDigit(c);                    
            }

When I try to put the letter in other language it doesnt typed, its OK. But than i can delete the text EXACTLY on the length of typed chars.

Example:

  1. I set the text in show() method: “android”.
  2. render()
  3. click on field. try to delete text. Backspace doesnt works.
  4. type filtered symbols, for example “ХУЙ”. They are not displayed and typed. OK
  5. Now i can delete 3 symbols! (the length of chars which i typed before but which were filtered).
0reactions
mariuskcommented, Jan 10, 2014

I compared notes with nexsoftware, who suggested checking out the Google Keyboard version. Mine was 2.0.19003.937116a, his (and he did not experience the bug) was more recent at version 2.0.19133.927933a. I have updated everything on my devices and have never been offered to update Google Keyboard. When I searched for “Google Keyboard” in the Play Store it wasn’t even found. But googling “Google Keyboard”, I got the link for the Play Store, which said I had installed it already. I selected “Install” anyway and it was updated to the more recent version. And the best news is that with the new version the bug went away! I have no ideas why Google Keyboard is not being offered to my devices (N4, N5 and N7); it could be a regional thing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix problems with Gboard - Android - Google Help
On your Android phone or tablet, open the Settings app Settings app . Tap System and then Languages and input. Tap Virtual keyboard...
Read more >
How To Fix Gboard Not Working On Android & iOS
Head to Settings > System > Languages & input on your phone and tap on Virtual keyboard.
Read more >
Google Keyboard (gboard) adds word fragments on backspace
I have a strange behavior with my Google Keyboard on a Motorola Moto E (2nd Generation, LTE) with Android 6.0.
Read more >
Gboard backspace only letting me press one at a time - Reddit
Well for some reason it only does one word at a time. Am I the only one with this bug?
Read more >
Why the backspace in Google keyboard in notes deletes the ...
Welcome to Android Central! Does this happen with other keyboards? If so, then it's probably a bug in the Notes app, not the...
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