1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Fix inline IME input not working in the empty LineEdit with the placeholder.

This commit is contained in:
bruvzg
2021-10-11 08:21:34 +03:00
parent 09b0293fad
commit 19a0982d60

View File

@@ -1931,7 +1931,7 @@ void LineEdit::_shape() {
TS->shaped_text_clear(text_rid); TS->shaped_text_clear(text_rid);
String t; String t;
if (text.length() == 0) { if (text.length() == 0 && ime_text.length() == 0) {
t = placeholder_translated; t = placeholder_translated;
} else if (pass) { } else if (pass) {
t = secret_character.repeat(text.length() + ime_text.length()); t = secret_character.repeat(text.length() + ime_text.length());