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

textinput bug with swipe typing #1773

Closed
eulerreich opened this issue Jan 16, 2014 · 4 comments
Closed

textinput bug with swipe typing #1773

eulerreich opened this issue Jan 16, 2014 · 4 comments
Labels

Comments

@eulerreich
Copy link

I'm on android 4.3 with cyanogenmod, using the AOSP keyboard.

In a TextInput, if I type "hello" by swiping, the output is hello. If I then follow it immediately by "world" by swiping, the total output so far is helloworld. If I then tap another key, say "y", the output becomes helloworldworld y.

So 2 things are wrong: 1) there should be a space between hello and world, or even better, let there be an option for whether to auto-insert spaces between swiped words. 2) the more egregious: world shouldn't be repeated when I tap another key.

This happens in my own app and also with the kivy showcase.

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

@dessant dessant added the Component: Widgets kivy/uix, style.kv label Oct 12, 2014
@merriam
Copy link
Contributor

merriam commented Mar 7, 2015

Right. I think I found this as an error down in kivy/behaviors.py/select_with_key_down(). Basically, time.clock() was used instead of time.time(), which meant the 'delay' for keys being different words never triggered. Might be fixed shortly.

@akshayaurora
Copy link
Member

@merriam behaviours have nothing to do with how input is handled through android IME's you might want to look in here https://github.com/kivy/python-for-android/blob/master/src/src/org/renpy/android/SDLSurfaceView.java#L1075 this is where input from IME is handled and passed onto kivy text input

@merriam
Copy link
Contributor

merriam commented Mar 9, 2015

@akshayaurora Thank you, I was incorrect. I was trying to find an already submitted bug for the fix here:
https://github.com/merriam/kivy/commit/d735622ad5802d6d42a2a739ab83a7521a34e6d4

I will submit a fresh bug.

@dessant
Copy link
Contributor

dessant commented Apr 13, 2016

Duplicate of #3284.

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

No branches or pull requests

4 participants