diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-11 09:21:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 09:21:45 +0200 |
commit | 498602009be0e1becd29ad9a3305120489b8c7b6 (patch) | |
tree | 2f6cfad436ecf8e2439f1de925afa23a7c68d114 | |
parent | 21ab46f7e95da8eb0234ae27e5f64d95b7b2a742 (diff) | |
parent | 19a0982d60d3f96f39361e05a769c31d463d068c (diff) |
Merge pull request #53661 from bruvzg/ime_fix
-rw-r--r-- | scene/gui/line_edit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 653885aa08..54e7d8f960 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -241,7 +241,7 @@ void LineEdit::gui_input(const Ref<InputEvent> &p_event) { _reset_caret_blink_timer(); if (b->is_pressed()) { - accept_event(); //don't pass event further when clicked on text field + accept_event(); // don't pass event further when clicked on text field if (!text.is_empty() && is_editable() && _is_over_clear_button(b->get_position())) { clear_button_status.press_attempt = true; clear_button_status.pressing_inside = true; @@ -1931,7 +1931,7 @@ void LineEdit::_shape() { TS->shaped_text_clear(text_rid); String t; - if (text.length() == 0) { + if (text.length() == 0 && ime_text.length() == 0) { t = placeholder_translated; } else if (pass) { t = secret_character.repeat(text.length() + ime_text.length()); |