File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -3682,15 +3682,6 @@ void Tree::gui_input(const Ref<InputEvent> &p_event) {
3682
3682
prev->select (selected_col);
3683
3683
}
3684
3684
ensure_cursor_is_visible ();
3685
- } else if (p_event->is_action (" ui_accept" ) && p_event->is_pressed ()) {
3686
- if (selected_item) {
3687
- // bring up editor if possible
3688
- if (!edit_selected ()) {
3689
- emit_signal (SNAME (" item_activated" ));
3690
- incr_search.clear ();
3691
- }
3692
- }
3693
- accept_event ();
3694
3685
} else if (p_event->is_action (" ui_select" ) && p_event->is_pressed ()) {
3695
3686
if (select_mode == SELECT_MULTI) {
3696
3687
if (!selected_item) {
@@ -3705,6 +3696,15 @@ void Tree::gui_input(const Ref<InputEvent> &p_event) {
3705
3696
}
3706
3697
}
3707
3698
accept_event ();
3699
+ } else if (p_event->is_action (" ui_accept" ) && p_event->is_pressed ()) {
3700
+ if (selected_item) {
3701
+ // bring up editor if possible
3702
+ if (!edit_selected ()) {
3703
+ emit_signal (SNAME (" item_activated" ));
3704
+ incr_search.clear ();
3705
+ }
3706
+ }
3707
+ accept_event ();
3708
3708
}
3709
3709
3710
3710
if (allow_search && k.is_valid ()) { // Incremental search
You can’t perform that action at this time.
0 commit comments