LineEdit, TextEdit nodes problem. Incorrect text editing on android

AnynakAnynak Posts: 4Member

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

The problem is noticed on an android with Google keyboard. No problem editing text on PC.
I will be very grateful for the help


Tags :

Answers

  • TwistedTwiglegTwistedTwigleg Posts: 1,721Admin

    Sounds like a bug. I would recommend opening an issue on GitHub if an issue covering this bug has not already been opened.

  • AnynakAnynak Posts: 4Member

    @TwistedTwigleg said:
    Sounds like a bug. I would recommend opening an issue on GitHub if an issue covering this bug has not already been opened.

    there is already such a question on github. but there is no solution to this problem.

    https://github.com/godotengine/godot/issues/27065

  • TwistedTwiglegTwistedTwigleg Posts: 1,721Admin

    I guess it is just a matter of waiting then.

    You could try to make your own TextEdit/LineEdit node if you want, but it might be more trouble than it is worth. Does the issue occur with Godot 3.0, or just Godot 3.1? If the issue does not occur in Godot 3.0, you might be able to use Godot 3.0 for development while you wait for the bug to be fixed.

    Outside of that, I'm not really sure. You could probably write GDScript code that deletes the extra characters when a new character is added as a workaround.

  • AnynakAnynak Posts: 4Member

    @TwistedTwigleg said:
    I guess it is just a matter of waiting then.

    You could try to make your own TextEdit/LineEdit node if you want, but it might be more trouble than it is worth. Does the issue occur with Godot 3.0, or just Godot 3.1? If the issue does not occur in Godot 3.0, you might be able to use Godot 3.0 for development while you wait for the bug to be fixed.

    Outside of that, I'm not really sure. You could probably write GDScript code that deletes the extra characters when a new character is added as a workaround.

    Godot 3.0 has the same problem. I don’t think that my programming experience will allow me to create my own text editor. maybe I can fix it manually, but I'm not sure that such a problem will be on all virtual keyboards.
    thanks for trying to help though

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file