Only prevent checkbox toggles if node is focused.

This commit is contained in:
Nolan Darilek 2019-09-30 09:47:42 -05:00
parent 5bf3bb285b
commit 1037becadf

View File

@ -53,10 +53,11 @@ func checkbox_focus():
tts.speak(tokens.join(" "), false)
func checkbox_toggled(checked):
if checked:
tts.speak("checked", true)
else:
tts.speak("unchecked", true)
if node.has_focus():
if checked:
tts.speak("checked", true)
else:
tts.speak("unchecked", true)
var spoke_hint_tooltip