From d544935ebbb99aa77f464e203e1f7d3ebce5b60f Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 19 Jul 2018 18:30:38 +0000 Subject: [PATCH] Make many more controls focussable. --- addons/accessibility/accessible.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/accessibility/accessible.gd b/addons/accessibility/accessible.gd index e568452..d740e5b 100644 --- a/addons/accessibility/accessible.gd +++ b/addons/accessibility/accessible.gd @@ -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")