We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Godot version: Master 92d4dee
OS/device including version: Android 11 (Pixel 3)
Issue description: After leaving and entering again a TextEdit control on Android, erasing the previously entered text doesn't work.
TextEdit
There's an error in the log when the virtual keyboard is triggered:
ERROR: TextEdit::_base_get_text: Index p_to_column = 5 is out of bounds (text[p_to_line].length() + 1 = 5). At: scene\gui\text_edit.cpp:4018
On this line in the new code:
String text = _base_get_text(0, 0, selection.selecting_line, selection.selecting_column);
I can confirm selection.selecting_column is 5 and not 4 in this scenario by debugging step by step on Windows (and forcing the virtual keyboard path).
selection.selecting_column
This issue seems to be due to #43561 (CC @naithar)
Steps to reproduce:
LineEdit
abcd
Minimal reproduction project: android-ui-4.0.zip
The text was updated successfully, but these errors were encountered:
naithar@efeb9e4 - I've ported latest commit from #43560 PR. It should fix this issue. I'll try to test it tomorrow and make a PR for master.
master
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Godot version:
Master 92d4dee
OS/device including version:
Android 11 (Pixel 3)
Issue description:
After leaving and entering again a
TextEdit
control on Android, erasing the previously entered text doesn't work.There's an error in the log when the virtual keyboard is triggered:
On this line in the new code:
I can confirm
selection.selecting_column
is 5 and not 4 in this scenario by debugging step by step on Windows (and forcing the virtual keyboard path).This issue seems to be due to #43561 (CC @naithar)
Steps to reproduce:
TextEdit
andLineEdit
)TextEdit
controlabcd
LineEdit
control5.Select the
TextEdit
control again (afterabcd
)Minimal reproduction project:
android-ui-4.0.zip
The text was updated successfully, but these errors were encountered: