mirror of
https://github.com/godotengine/godot.git
synced 2025-02-01 14:45:22 +00:00
Fix inline IME input not working in the empty LineEdit with the placeholder.
This commit is contained in:
parent
09b0293fad
commit
19a0982d60
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user