mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-24 21:05:57 +00:00
Don't make raw Control objects focusable.
This commit is contained in:
parent
46149791fd
commit
cba7fb8366
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user