mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-24 12:55:56 +00:00
Don't guess the label for a label.
This commit is contained in:
parent
5b2c16f342
commit
d5c79f7c56
|
@ -450,12 +450,13 @@ func tab_container_input(event):
|
|||
func focused():
|
||||
print_debug("Focus: %s" % node)
|
||||
TTS.stop()
|
||||
var label = guess_label()
|
||||
if label:
|
||||
if label is Label:
|
||||
label = label.text
|
||||
if label and label != "":
|
||||
TTS.speak(label, false)
|
||||
if not node is Label:
|
||||
var label = guess_label()
|
||||
if label:
|
||||
if label is Label:
|
||||
label = label.text
|
||||
if label and label != "":
|
||||
TTS.speak(label, false)
|
||||
if node is MenuButton:
|
||||
menu_button_focused()
|
||||
elif node is AcceptDialog:
|
||||
|
|
Loading…
Reference in New Issue
Block a user