Fix issue where speech is cut off when navigating between tabs.

This commit is contained in:
Nolan Darilek 2019-09-02 11:08:10 -05:00
parent 75844f66d9
commit 323d6bcc25

View File

@ -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: