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

Fix IME input in multiple Windows at once

This commit is contained in:
kit
2025-10-20 20:25:59 -04:00
parent 7864ac8019
commit 8abdedd477
2 changed files with 6 additions and 0 deletions

View File

@@ -1638,6 +1638,9 @@ void LineEdit::_notification(int p_what) {
if (ime_text == new_ime_text && ime_selection == new_ime_selection) {
break;
}
if (!window_has_focus && !new_ime_text.is_empty()) {
break;
}
ime_text = new_ime_text;
ime_selection = new_ime_selection;