Make many more controls focussable.

This commit is contained in:
Nolan Darilek 2018-07-19 18:30:38 +00:00
parent 731e497ed6
commit d544935ebb

View File

@ -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")