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

Can't type anything into textinput using new toolchain #1102

Closed
Fogapod opened this issue Aug 29, 2017 · 11 comments
Closed

Can't type anything into textinput using new toolchain #1102

Fogapod opened this issue Aug 29, 2017 · 11 comments
Milestone

Comments

@Fogapod
Copy link
Contributor

Fogapod commented Aug 29, 2017

Versions

  • kivy: master
  • buildozer: 0.34dev (buildozer.spec) buildozer android debug
  • p4a: master

Description

TextInput does not allow any symbols to be entered (except clipboard)
The problem exists on several devices. On the others there are not any problems.
I think, it can be referenced to kivy/kivy#5043, but not sure where the problem is: in kivy or in python-for-android.
Problem does not appear in old toolchain

Devices with problem confirmed (using stock keyboard only):

  • Samsung J3 (6), android 5.1.1

Code

Even app returning a single TextInput won't work.

@inclement
Copy link
Member

Would you be able to download and run the apk at http://inclem.net/files/Kivykeyboardtester-0.5-debug.apk ? If you could follow the instructions, it will end with emailing me some information about what keyboard events kivy is receiving. I never got the app ready to publish publicly, but I think it should work for this.

@Fogapod
Copy link
Contributor Author

Fogapod commented Aug 29, 2017

@inclement
Copy link
Member

Fantastic, that's extremely useful, thanks!
The problem seems to be that Kivy doesn't currently do anything with sdl2 textediting events, instead assuming that text entry occurs only via individual key events, or textinput events. I had guessed this before, but wasn't able to reproduce the problem on any devices. Your log confirms it, and should hopefully be enough to code an initial solution to the problem, although I'm not sure if some parts of it could be tricky.

@inclement
Copy link
Member

Aritodo reported that this happens with the minuum keyboard.

@inclement
Copy link
Member

@khertan reports:

TextInput display text only when suggestion validate with enter or space on Asus ZenPhone3. even with keyboard_suggestions: False.

@vanphong1310
Copy link

I have same problem like @khertan. I try installing @inclement's app but it always crash and close at first test (I only can type 'One two three' then it crash).
And the strange thing, I can nomarlly type in Kivy showcase app, it work very well.

My phone: Samsung Galaxy A9 Pro with Android 7.0
My keyboard: Laban Key Go Tieng Viet
I built my app with buildozer 0.34, kivy 1.10.0, cython 0.25.

@brvier
Copy link
Contributor

brvier commented Mar 20, 2018

The problem is really the ZenUI Keyboard on Asus, switching to google keyboard i didn't have that problem

  • Don t have the problem on Galaxy J5 2017 (by default it s a Samsung Keyboard)
  • Don t have the problem on the WileyFox Swift 2 (android stock keyboard)
  • Don t have the problem with the Motorola G5
  • Don t have the problem on Galaxy A3 2015 (by default it s a Samsung Keyboard)

@vanphong1310
Copy link

I try building my app with android_old command (that use pygame instead of SDL) then I can type everything I want 😃.
Seems like the problem is of SDL, it don't work well with some keyboard IME - In Linux, I need update SDL to version 2.0.5 for typing with Fcitx.

@inclement
Copy link
Member

This may have been improved by the move to sdl2.0.9.

@inclement
Copy link
Member

I'm going to provisionally close this because it seems there's a good chance it's been fixed by SDL2.0.9. We know of various bugs that have been fixed, and @vanphong1310's observation of improvements on Linux is also a good sign.

This can be reopened if the issue still occurs, please feel free to comment if that's the case.

@vanphong1310
Copy link

vanphong1310 commented Mar 1, 2019

I have just tried to build again with sdl2 2.0.9.
Now, I can enter text but only in English, IME does not work so I cannot enter Vietnamese text.
I tried with Gboard keyboard, Samsung's stock keyboard, only English work though I switched to Vietnamese.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants