Skip to content

Auto-correct / word suggestion does not work with Swiftkey/Samsung keyboard #2010

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

Closed
mjuchno opened this issue Oct 21, 2019 · 7 comments
Closed

Comments

@mjuchno
Copy link

mjuchno commented Oct 21, 2019

Versions

  • buildozer = 0.39
  • Kivy = 1.11.1
  • Cython = 0.29.13
  • p4a = master
  • SDK/NDK = default (commented out in buildozer.spec)

Devices & keyboards:

  • Samsung S7 (8.0.0), LG Stylo 4 (8.1.0)
  • Samsung Keyboard, Swiftkey

Description

When editing TextInput word suggestion tab does not show above Swiftkey/Samsung keyboard
Swipe dos not work as well (path shows up on Samsung keyboard but no word shows up).
Google Voice input works fine.
Setting keyboard_suggestions to True (which is suppose to be True by default) does nothing.

As Kivykeyboardtester-0.5-debug.apk by @inclement gives exactly the same behavior I wonder whether it is my phone/keyboard fault or I do something wrong, or something is wrong with SDK2 (sorry if this was reported earlier).
I get the same behavior in the new Kivy Launched and when I build an apk.
I remember having the same issue about a year ago (and it was reason to stop playing with kivy). I remember that old Kivy Launcher (based on pygame and python2?) was working fine.
I would appreciate any hints.

@ghost
Copy link

ghost commented Dec 5, 2019

The reason you're not getting suggestions is here:

outAttrs.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD;

TYPE_TEXT_VARIATION_VISIBLE_PASSWORD shows a keyboard for password fields. That's why you don't see suggestions, even if keyboard_suggestions is set to True.

Removing that input type should fix your issue, but as mentioned in #2015, a bug similar to the swipe one appears.

P.S: You may want to see this and this.

@mjuchno
Copy link
Author

mjuchno commented Dec 7, 2019

This is great! Thanks!
The bug you mentioned appears. I will continue replying to the pull thread you linked.

@ghost
Copy link

ghost commented Dec 8, 2019

You're welcome. There's something I want to add:
At the time I'm posting this, keyboard_suggestions shouldn't work as expected, because it is not linked properly to any keyboard behavior. That said, if you turn keyboard_suggestions to False, you will see suggestions anyway.
We can keep the conversation in the PR then.

@mannutheman3
Copy link

May

The reason you're not getting suggestions is here:

outAttrs.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD;

TYPE_TEXT_VARIATION_VISIBLE_PASSWORD shows a keyboard for password fields. That's why you don't see suggestions, even if keyboard_suggestions is set to True.

Removing that input type should fix your issue, but as mentioned in #2015, a bug similar to the swipe one appears.

P.S: You may want to see this and this.
How do I Remove that input ? please tell

@Saad5400
Copy link

The reason you're not getting suggestions is here:

outAttrs.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD;

TYPE_TEXT_VARIATION_VISIBLE_PASSWORD shows a keyboard for password fields. That's why you don't see suggestions, even if keyboard_suggestions is set to True.

Removing that input type should fix your issue, but as mentioned in #2015, a bug similar to the swipe one appears.

P.S: You may want to see this and this.

what about buildozer

@misl6
Copy link
Member

misl6 commented Nov 28, 2022

Fixed via #2692

@misl6 misl6 closed this as completed Nov 28, 2022
@Neizvestnyj
Copy link
Contributor

Does not work with Microsoft SwiftKey (kivy: 2.2.0)

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

5 participants