Grab focus condition fix

This commit is contained in:
WallK 2024-01-11 09:34:38 +02:00
parent c429194188
commit 72854e9e54

View file

@ -3,7 +3,7 @@ extends Control
func _ready():
var children = findElements(self, "Control")
for n: Control in children: #iterate the children to grab focus on mouse hov
if (n.focus_mode != FOCUS_NONE):
if (n.focus_mode == FOCUS_ALL):
n.mouse_entered.connect(_on_control_mouse_entered.bind(n))
func _input(event):