summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-05-13 07:56:38 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-05-13 07:56:38 +0200
commit79f29babc961c9989f07455c318955cb9b3f90d6 (patch)
tree5e40413b3dccf1e20f1026154ac347a8f24c12bf
parenta5a56a492377537bf27876f8c10cfb0492d532a9 (diff)
parent81b4d38fa70246446af5ed1b5efcb91b2b38b028 (diff)
Merge pull request #4638 from volzhs/pr-issue-4607
open directory or file when double click
-rw-r--r--scene/gui/item_list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp
index 64f1de42af..bf66a770d3 100644
--- a/scene/gui/item_list.cpp
+++ b/scene/gui/item_list.cpp
@@ -462,7 +462,7 @@ void ItemList::_input_event(const InputEvent& p_event) {
}
} else {
- if (!mb.mod.command && select_mode==SELECT_MULTI && items[i].selectable && items[i].selected) {
+ if (!mb.doubleclick && !mb.mod.command && select_mode==SELECT_MULTI && items[i].selectable && items[i].selected) {
defer_select_single=i;
return;
}