summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2023-01-11 01:12:12 +0100
committerGitHub <noreply@github.com>2023-01-11 01:12:12 +0100
commitb65c5bccfa787929acc265308a0714ecbb179359 (patch)
tree21fccc63d16f759e6db3197b5d78ccda8d3c33dc /scene
parent8cb63cdd5522659d682adf8804841dcb29593dac (diff)
parent76a3f8e573594d73c2681071a36368202d3ec690 (diff)
Merge pull request #71042 from marzecdawid/only-cursor-multiselect-tree-text-search
Fix text search in Tree with multiselect
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/tree.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index e76abe57ba..3458b87b8d 100644
--- a/scene/gui/tree.cpp
+++ b/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();
}