mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 15:35:38 +00:00
Grab focus condition fix
This commit is contained in:
parent
c429194188
commit
72854e9e54
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue