mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 13:43:15 +00:00
ItemList: ignore ui_select
action if Select Mode is not "Multi"
This commit is contained in:
parent
07e2046980
commit
5f47e18b0f
@ -715,9 +715,9 @@ void ItemList::_gui_input(const Ref<InputEvent> &p_event) {
|
||||
}
|
||||
} else if (p_event->is_action("ui_cancel")) {
|
||||
search_string = "";
|
||||
} else if (p_event->is_action("ui_select")) {
|
||||
} else if (p_event->is_action("ui_select") && select_mode == SELECT_MULTI) {
|
||||
|
||||
if (select_mode == SELECT_MULTI && current >= 0 && current < items.size()) {
|
||||
if (current >= 0 && current < items.size()) {
|
||||
if (items[current].selectable && !items[current].disabled && !items[current].selected) {
|
||||
select(current, false);
|
||||
emit_signal("multi_selected", current, true);
|
||||
|
Loading…
Reference in New Issue
Block a user