diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 99ac47d34be..60d0181971e 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -1489,6 +1489,7 @@ int Tree::propagate_mouse_event(const Point2i &p_pos, int x_ofs, int y_ofs, bool if (p_doubleclick && (!c.editable || c.mode == TreeItem::CELL_MODE_CUSTOM || c.mode == TreeItem::CELL_MODE_ICON /*|| c.mode==TreeItem::CELL_MODE_CHECK*/)) { //it' s confusing for check emit_signal("item_activated"); + incr_search.clear(); return -1; } @@ -2037,6 +2038,7 @@ void Tree::_input_event(InputEvent p_event) { //bring up editor if possible if (!edit_selected()) { emit_signal("item_activated"); + incr_search.clear(); } } accept_event();