Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix `ItemList` items showing focus when they shouldn't

Michael Alexsander410dc4cc09e2
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp
index 59f09acbfc8..9b232afbb42 100644
--- a/scene/gui/item_list.cpp
+++ b/scene/gui/item_list.cpp
@@ -1550,7 +1550,7 @@ void ItemList::_notification(int p_what) {
bool is_hovered = (hovered == i);
bool is_selected = items[i].selected;
bool is_disabled = items[i].disabled;
- bool is_focused = has_focus();
+ bool is_focused = has_focus(true);
if (is_disabled) {
if (is_hovered) {