mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-12-22 07:35:56 +00:00
Fix issue where speech for caret moves cuts off announcement of LineEdit
field and content.
This commit is contained in:
parent
9817ee0e80
commit
6a967e8add
|
@ -87,13 +87,15 @@ var old_pos
|
|||
|
||||
func check_caret_moved():
|
||||
var pos = node.caret_position
|
||||
if old_pos != pos:
|
||||
if old_pos != null and old_pos != pos:
|
||||
var text = node.text
|
||||
if pos > len(text)-1:
|
||||
tts.speak("blank", true)
|
||||
else:
|
||||
tts.speak(text[pos], true)
|
||||
old_pos = pos
|
||||
elif old_pos == null:
|
||||
old_pos = pos
|
||||
|
||||
func focus_menu_button():
|
||||
tts.speak(node.text + ": menu", false)
|
||||
|
|
Loading…
Reference in New Issue
Block a user