mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-24 12:55:56 +00:00
Fix fail-fast condition that prevented single character text fields from speaking.
This commit is contained in:
parent
b55bdb1547
commit
2463eced93
|
@ -178,12 +178,12 @@ func line_edit_focused():
|
|||
type = "text"
|
||||
TTS.speak("%s: %s" % [text, type], false)
|
||||
|
||||
var old_text
|
||||
var old_text = ""
|
||||
|
||||
var old_pos
|
||||
|
||||
func line_edit_text_changed(text):
|
||||
if not text or not old_text:
|
||||
if text == null or old_text == null:
|
||||
return
|
||||
if len(text) > len(old_text):
|
||||
for i in range(len(text)):
|
||||
|
|
Loading…
Reference in New Issue
Block a user