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

LineEdit copies chunks of text erratically on Android #27065

Closed
jabcross opened this issue Mar 14, 2019 · 13 comments · Fixed by #38309
Closed

LineEdit copies chunks of text erratically on Android #27065

jabcross opened this issue Mar 14, 2019 · 13 comments · Fixed by #38309

Comments

@jabcross
Copy link
Contributor

Godot version:
3.1 stable

OS/device including version:
Asus Zenfone Max Plus (Android 7)
Xiaomi Pocophophone F1 (Android 9)

Issue description:
If you move the caret to the middle of the text, when you type the keyboard copies a section of the text.

If you type

aaaaabbbbcccc|

, move the caret inbetween the a and b

aaaaa|bbbbcccc

and type d, you get

aaaaabbbbccccd|bbbbcccc

instead of the expected

aaaaad|bbbbcccc

I suspect this has to do with synchronizing the virtual keyboard's buffer.

Steps to reproduce:

  • Create a LineEdit
  • Export to Android
  • Type some text as explained above

Minimal reproduction project:
(This MRP is literally just a LineEdit in an otherwise empty scene.)
MRP.zip

@jabcross
Copy link
Contributor Author

I should specify that I move the caret by touching the LineEdit directly, and not using any sort of arrow keys.

@leakim34
Copy link

I experience same issue, and as far as I know it's relative to keyboard suggestions because if I set the keyboard without suggestion ( I do it with a android plugin I made) I do not experience this issue anymore and can add some text anywhere.

Plus, I noticed that onTextChanged() handler in godot:
https://github.com/godotengine/godot/blob/master/platform/android/java/src/org/godotengine/godot/input/GodotTextInputWrapper.java#L103

the start parameter seems to be incorrect, it always has 0 even when we insert text in different position ... might help .. not sure.

Please if someone can look into it.

Thanks

@Anynak
Copy link

Anynak commented Oct 12, 2019

Hey. I suffer from this problem too. is there any solution

@leakim34
Copy link

leakim34 commented Oct 12, 2019 via email

@Ramh5
Copy link

Ramh5 commented Feb 10, 2020

Does anyone have a workaround to this issue? Is there a previous version of Godot that would work on Android in the mean time?

@leakim34
Copy link

leakim34 commented Feb 10, 2020 via email

@akien-mga akien-mga added this to the 4.0 milestone Feb 10, 2020
@jabcross
Copy link
Contributor Author

jabcross commented Feb 10, 2020 via email

@ondesic
Copy link

ondesic commented Apr 20, 2020

Can this be moved to the front lines? I am in GREAT need of this being fixed ASAP. My entire project relies on a TextEdit control being used between an android device and a Desktop.

@Calinou
Copy link
Member

Calinou commented Apr 20, 2020

@ondesic In community-developed projects, people work on what they want to work on. If you want to see this feature fixed faster, you'll have to do it yourself or pay someone to do it.

I added the high priority label, but don't expect it to actually do anything 🙂

@ondesic
Copy link

ondesic commented Apr 20, 2020

@Calinou This brings up a great point that I have wondered about. I would be VERY happy to pay someone to work on this, I just don't know how to go about this. Any ideas?

@SkyLucilfer
Copy link
Contributor

I'll try to look into this issue and see if I can do something.

@ondesic
Copy link

ondesic commented Apr 20, 2020

@SkyLucilfer I am happy to pay you for your time. Let me know how to message you

@SkyLucilfer
Copy link
Contributor

@ondesic No need to pay :) I'm working on it but I cannot guarantee anything.

@Calinou Calinou changed the title LineEdit copies chunks of text erraticaly on Android LineEdit copies chunks of text erratically on Android Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants