mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-22 03:45:56 +00:00
Fix issue where speech is cut off when navigating between tabs.
This commit is contained in:
parent
75844f66d9
commit
323d6bcc25
|
@ -142,10 +142,10 @@ func focus_tab_container():
|
||||||
tts.speak(text, false)
|
tts.speak(text, false)
|
||||||
|
|
||||||
func input_tab_container(event):
|
func input_tab_container(event):
|
||||||
tts.stop()
|
|
||||||
var new_tab = node.current_tab
|
|
||||||
if event.echo or not event.pressed:
|
if event.echo or not event.pressed:
|
||||||
return
|
return
|
||||||
|
tts.stop()
|
||||||
|
var new_tab = node.current_tab
|
||||||
if event.scancode == KEY_RIGHT:
|
if event.scancode == KEY_RIGHT:
|
||||||
new_tab += 1
|
new_tab += 1
|
||||||
elif event.scancode == KEY_LEFT:
|
elif event.scancode == KEY_LEFT:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user