diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 2dffa332ee9..3b257019448 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -1730,6 +1730,8 @@ void Tree::_text_editor_modal_close() { return; } + if (value_editor->has_point(value_editor->get_local_mouse_pos())) + return; text_editor_enter(text_editor->get_text()); }