mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-02-18 04:15:40 +00:00
Grab focus condition fix
This commit is contained in:
parent
c429194188
commit
72854e9e54
|
@ -3,7 +3,7 @@ extends Control
|
||||||
func _ready():
|
func _ready():
|
||||||
var children = findElements(self, "Control")
|
var children = findElements(self, "Control")
|
||||||
for n: Control in children: #iterate the children to grab focus on mouse hov
|
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))
|
n.mouse_entered.connect(_on_control_mouse_entered.bind(n))
|
||||||
|
|
||||||
func _input(event):
|
func _input(event):
|
||||||
|
|
Loading…
Reference in a new issue