kivy / python-for-android

Turn your Python application into an Android APK
https://python-for-android.readthedocs.io
MIT License
8.33k stars 1.84k forks source link

Numeric keyboard doesn't work with SDL2 #796

Open inclement opened 8 years ago

inclement commented 8 years ago

Not sure if this needs a change in Kivy, or p4a, or both.

See here for original report and more info.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

sergiomorillo commented 7 years ago

Same problem as @Fak3, my app shows numeric keyboard in Kivy launcher but if I install it after compiling with sdl2 it always shows default keyboard.

inclement commented 7 years ago

For reference, the place where this probably needs to be handled is https://github.com/kivy/kivy/blob/master/kivy/core/window/window_sdl2.py#L697

inclement commented 7 years ago

It looks like this is more annoying than it used to be because SDL2 doesn't actually have an API for it. Probably we need to update the inputType of our Java View before opening the textinput, but this will need some pyjnius code in the right places, and some care needs to be taken about what to do if e.g. the TextInput is already open.

chavarinbonbyn commented 4 years ago

Hi, does anyone knows if this has been fixed ?, if so in which version ?