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

Fixed space input under SDL2 for some Android keyboards #4712

Merged
merged 1 commit into from
Dec 13, 2016

Conversation

inclement
Copy link
Member

@inclement inclement commented Nov 6, 2016

Not for merging without further discussion - this seems to work without causing more problems, but I'm PRing mainly to report the issue and a possible fix.

The problem is that on android we listen only for textinput events, which is how text is supposed to be passed by sdl2. Some keyboards (e.g. LG G4 default) pass only textinput events. Others (e.g. Motorola E default) pass both a textinput event and keydown/keyup events for each key, which is why the current behaviour is to ignore the latter. However, in some cases the space character is passed only as keydown/keyup, not as textinput, so it is also ignored.

This PR would just recognise the space character. I don't know how reliable it is - it could cause another problem on any device that passes both keydown/keyup and textinput events for space characters.

@inclement
Copy link
Member Author

I've had this deployed in an app for 5 weeks now, with no complaints about double spaces being received, whereas I had many complaints about space not working before. So, I think this is good to merge.

@akshayaurora akshayaurora merged commit 211998f into kivy:master Dec 13, 2016
@akshayaurora
Copy link
Member

@inclement 👍

@matham matham removed this from the 2.0.0 milestone Nov 14, 2020
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

Successfully merging this pull request may close these issues.

None yet

3 participants