Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineEdit and SpinBox don't accept input from on-screen keyboards a majority of the time on Android Web #99602

Open
imp0s5ible opened this issue Nov 23, 2024 · 0 comments

Comments

@imp0s5ible
Copy link

imp0s5ible commented Nov 23, 2024

Tested versions

v4.3.stable.official [77dcf97]
v4.4.dev5.official [9e60984]

System information

Galaxy A52s 5G - One UI 6.1 - Samsung Keyboard 5.8.20.7 - GBoard 14.8.05.686567880-release-arm64-v8a - Android 14 Build/UP1A.231005.007 - Kernel 5.4.254 - Brave 1.73.89, Chromium 131.0.6778.69

Issue description

On the web export of a Godot project opened in an Android browser, LineEdit and SpinBox elements either do not react to on-screen keyboard input or react to it erratically, dumping previously typed text when certain keys are pressed. The exact behavior is difficult to circumscribe as its reaction to any keypress seems to depend on a number of factors such as pervious input, keyboard used etc., but here are some of the observations I made:

  • Input fields don't seem to react to GBoard (Google Keyboard) input
    • The input does seem to get cached somewhere though, as it's dumped as soon as I switch to Samsung Keyboard and press a key
  • Samsung Keyboard input sometimes works properly, but this seems to be temporary and I don't know the exact steps to make this happen
  • Samsung Keyboard seems to not be able to type any digits, but all digits that were typed (regardless of being backspaced) are suddenly displayed if a latin character is entered, after which you can enter one digit properly before this behavior repeats
  • Samsung Keyboard doesn't seem to be able to enter any special characters (hashmarks, curly braces etc.) what so ever, not even with the technique in the above point
  • Turning off Predictive Text on Samsung Keyboard makes it completely unable to type, the same as GBoard
  • Using a physical keyboard on Android Web works fine, but buggy behavior resumes when switching back to touch keyboard
  • Using the on-screen keyboard on Windows works fine
line_edit_android_web.webm

Steps to reproduce

  1. Download the MRP
  2. Export it to web
  3. Host the web export on a server
  4. Access the game on an Android phone browser
  5. Try to use any of the LineEdit/SpinBox inputs with different on-screen keyboards

Additionally you should also access the same export on a desktop browser and verify that inputs do work properly there

Minimal reproduction project (MRP)

line_edit_bug_web_android.zip

The MRP is also hosted for quick access from mobile (running on v4.3.stable.official): https://godot-bugtest-html.vercel.app/

@imp0s5ible imp0s5ible changed the title LineEdit and SpinBox don't accept input from on-screen keyboards the majority of time on Android Web LineEdit and SpinBox don't accept input from on-screen keyboards a majority of the time on Android Web Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants