mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-22 03:45:56 +00:00
Make many more controls focussable.
This commit is contained in:
parent
731e497ed6
commit
d544935ebb
|
@ -132,7 +132,8 @@ func _init(node):
|
|||
return
|
||||
node.add_to_group("accessible")
|
||||
self.node = node
|
||||
# node.set_focus_mode(Control.FOCUS_ALL)
|
||||
if not node is Container and not node is Panel and not node is Separator:
|
||||
node.set_focus_mode(Control.FOCUS_ALL)
|
||||
node.connect("focus_entered", self, "focused")
|
||||
node.connect("mouse_entered", self, "focused")
|
||||
node.connect("focus_exited", self, "unfocused")
|
||||
|
|
Loading…
Reference in New Issue
Block a user