mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #111780 from aaronfranke/tree-double-click-not-editable
Allow double-clicking icons of non-editable Tree items
This commit is contained in:
commit
77cfbe9371
2 changed files with 3 additions and 1 deletions
|
|
@ -4160,6 +4160,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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue