mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-12-22 07:35:56 +00:00
Make Accessible
extend Node
and parent it to ScreenReader
for easier cleanup.
This commit is contained in:
parent
6adce2706c
commit
dfe0c8179e
|
@ -1,4 +1,4 @@
|
|||
extends Object
|
||||
extends Node
|
||||
|
||||
var node
|
||||
|
||||
|
|
|
@ -23,7 +23,8 @@ func unfocused(node):
|
|||
|
||||
func augment_node(node):
|
||||
if node is Control:
|
||||
Accessible.new(node)
|
||||
var accessible = Accessible.new(node)
|
||||
add_child(accessible)
|
||||
if not node.is_connected("focus_entered", self, "focused"):
|
||||
node.connect("focus_entered", self, "focused", [node])
|
||||
if not node.is_connected("mouse_entered", self, "click_focused"):
|
||||
|
|
Loading…
Reference in New Issue
Block a user