You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix IME input in multiple Windows at once
This commit is contained in:
@@ -1638,6 +1638,9 @@ void LineEdit::_notification(int p_what) {
|
|||||||
if (ime_text == new_ime_text && ime_selection == new_ime_selection) {
|
if (ime_text == new_ime_text && ime_selection == new_ime_selection) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (!window_has_focus && !new_ime_text.is_empty()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
ime_text = new_ime_text;
|
ime_text = new_ime_text;
|
||||||
ime_selection = new_ime_selection;
|
ime_selection = new_ime_selection;
|
||||||
|
|||||||
@@ -1978,6 +1978,9 @@ void TextEdit::_notification(int p_what) {
|
|||||||
if (ime_text == new_ime_text && ime_selection == new_ime_selection) {
|
if (ime_text == new_ime_text && ime_selection == new_ime_selection) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (!window_has_focus && !new_ime_text.is_empty()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
bool had_ime_text = has_ime_text();
|
bool had_ime_text = has_ime_text();
|
||||||
ime_text = new_ime_text;
|
ime_text = new_ime_text;
|
||||||
|
|||||||
Reference in New Issue
Block a user