mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #74029 from bruvzg/ime_textedit_complex
[TextEdit / IME] Check selection before deleting to avoid unnecessary error messages.
This commit is contained in:
commit
b8e8572a1d
@ -1548,7 +1548,7 @@ void TextEdit::_notification(int p_what) {
|
||||
ime_text = DisplayServer::get_singleton()->ime_get_text();
|
||||
ime_selection = DisplayServer::get_singleton()->ime_get_selection();
|
||||
|
||||
if (!ime_text.is_empty()) {
|
||||
if (!ime_text.is_empty() && has_selection()) {
|
||||
delete_selection();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user