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

InputType.TYPE_TEXT_FLAG_MULTI_LINE forces InputType.TYPE_TEXT even if SDLActivity.keyboardInputType is NULL #2716

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

misl6
Copy link
Member

@misl6 misl6 commented Dec 11, 2022

Unfortunately (and I'm creating a detailed report for us and the SDL team), suggestions from Android keyboards are still not completely usable. 😔

A logic, that mimics every possible scenario should be implemented on our side or on SDL's side if we decide to keep using input from SDL on mobile devices (which still makes sense ATM).

In one of the recents SDL updates, InputType.TYPE_TEXT_FLAG_MULTI_LINE has been or-ed with the InputType.

That is preventing InputType.TYPE_NULL (which is the default on kivy/kivy==master) to work, as InputType.TYPE_TEXT_FLAG_MULTI_LINE forces InputType.TYPE_TEXT even if SDLActivity.keyboardInputType is InputType.TYPE_NULL.

If needed InputType.TYPE_TEXT_FLAG_MULTI_LINE should be moved on our InputType selection logic in kivy/kivy.

See: kivy/kivy#7744 for further details.

@misl6 misl6 merged commit 26d5155 into kivy:develop Dec 12, 2022
@misl6 misl6 deleted the fix/disable-text-suggestions-again-2022 branch December 12, 2022 17:42
shyamnathp pushed a commit to shyamnathp/python-for-android that referenced this pull request Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants