Don't make raw Control objects focusable.

This commit is contained in:
Nolan Darilek 2018-07-19 20:47:59 +00:00
parent 46149791fd
commit cba7fb8366

View File

@ -166,7 +166,7 @@ func _init(node):
return
node.add_to_group("accessible")
self.node = node
if not node is Container and not node is Panel and not node is Separator and not node is ScrollBar and not node is Popup:
if not node is Container and not node is Panel and not node is Separator and not node is ScrollBar and not node is Popup and node.get_class() != "Control":
node.set_focus_mode(Control.FOCUS_ALL)
node.connect("focus_entered", self, "focused")
node.connect("mouse_entered", self, "focused")