mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-12-21 23:25:56 +00:00
Correctly handle case where EditorInspectorSection
child isn't expandable.
This commit is contained in:
parent
dd9877557e
commit
2da7fcff9d
|
@ -668,12 +668,13 @@ func is_focusable(node):
|
|||
|
||||
func editor_inspector_section_focused():
|
||||
var child = node.get_children()[0]
|
||||
var expanded = child.is_visible_in_tree()
|
||||
var tokens = PoolStringArray(["editor inspector section"])
|
||||
if expanded:
|
||||
tokens.append("expanded")
|
||||
else:
|
||||
tokens.append("collapsed")
|
||||
if child is CanvasItem or child is Spatial:
|
||||
var expanded = child.is_visible_in_tree()
|
||||
if expanded:
|
||||
tokens.append("expanded")
|
||||
else:
|
||||
tokens.append("collapsed")
|
||||
TTS.speak(tokens.join(": "), false)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user