Allow double-clicking icons of non-editable Tree items

This commit is contained in:
Aaron Franke
2025-10-17 19:39:21 -07:00
parent 7864ac8019
commit 70ea991c69
2 changed files with 3 additions and 1 deletions

View File

@@ -4134,6 +4134,8 @@ void Tree::gui_input(const Ref<InputEvent> &p_event) {
if (rtl) {
pressing_pos.x = get_size().width - pressing_pos.x;
}
} else if (mb->is_double_click()) {
emit_signal(SNAME("item_icon_double_clicked"));
}
if (mb->get_button_index() == MouseButton::RIGHT) {