Selaa lähdekoodia

Fix text search in Tree with multiselect

Dawid Marzec 2 vuotta sitten
vanhempi
commit
76a3f8e573
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      scene/gui/tree.cpp

+ 5 - 1
scene/gui/tree.cpp

@@ -4850,7 +4850,11 @@ void Tree::_do_incr_search(const String &p_add) {
 		return;
 	}
 
-	item->select(col);
+	if (select_mode == SELECT_MULTI) {
+		item->set_as_cursor(col);
+	} else {
+		item->select(col);
+	}
 	ensure_cursor_is_visible();
 }