From de2f22b0c2ce1613cf22c6f8888354c7bcc74bed Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Sat, 21 Sep 2019 08:54:12 -0500 Subject: [PATCH] Only speak tab changes if tabs have focus. --- accessible.gd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/accessible.gd b/accessible.gd index ec5735e..f730409 100644 --- a/accessible.gd +++ b/accessible.gd @@ -334,8 +334,9 @@ func tab_container_focus(): tts.speak(text, false) func tab_container_tab_changed(tab): - tts.stop() - tab_container_focus() + if node.has_focus(): + tts.stop() + tab_container_focus() func tab_container_input(event): var new_tab = node.current_tab