1
0
Fork 0

Merge pull request #8647 from Hinsbart/tree_search

Tree: Clear search string on selection.
This commit is contained in:
Rémi Verschelde 2017-05-05 23:04:25 +02:00 committed by GitHub
commit d6e5215860
1 changed files with 2 additions and 0 deletions

View File

@ -1518,6 +1518,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;
}
@ -2071,6 +2072,7 @@ void Tree::_gui_input(InputEvent p_event) {
//bring up editor if possible
if (!edit_selected()) {
emit_signal("item_activated");
incr_search.clear();
}
}
accept_event();