mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-22 11:55:56 +00:00
Only prevent checkbox toggles if node is focused.
This commit is contained in:
parent
5bf3bb285b
commit
1037becadf
|
@ -53,10 +53,11 @@ func checkbox_focus():
|
||||||
tts.speak(tokens.join(" "), false)
|
tts.speak(tokens.join(" "), false)
|
||||||
|
|
||||||
func checkbox_toggled(checked):
|
func checkbox_toggled(checked):
|
||||||
if checked:
|
if node.has_focus():
|
||||||
tts.speak("checked", true)
|
if checked:
|
||||||
else:
|
tts.speak("checked", true)
|
||||||
tts.speak("unchecked", true)
|
else:
|
||||||
|
tts.speak("unchecked", true)
|
||||||
|
|
||||||
var spoke_hint_tooltip
|
var spoke_hint_tooltip
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user