From c218d180901b2a0a0c91ffa0d24d38ade775d5d5 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 10 Aug 2020 12:39:53 -0500 Subject: [PATCH] Revert "Focus and dialog presentation tweaks." This causes scrolling through trees, lists, and just about everything else where focus doesn't change to a new widget to fail. Clearly another solution is needed. This reverts commit c459a35f0d4490934b9245d53b991c6a0f9462dd. --- Accessible.gd | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Accessible.gd b/Accessible.gd index 838a108..12eb1f7 100644 --- a/Accessible.gd +++ b/Accessible.gd @@ -54,8 +54,7 @@ func _guess_label(): func _accept_dialog_speak(): if node.dialog_text != "": - print("Speaking %s" % node.dialog_text) - TTS.speak("dialog: %s" % node.dialog_text, false) + TTS.speak("dialog: %s" % node.dialog_text) func accept_dialog_focused(): @@ -66,7 +65,6 @@ func accept_dialog_focused(): func _accept_dialog_about_to_show(): - print("About to show") _accept_dialog_speak() @@ -545,6 +543,7 @@ func tab_container_input(event): func focused(): print_debug("Focus: %s" % node) + TTS.stop() if not node is Label: var label = _guess_label() if label: @@ -606,8 +605,6 @@ func click_focused(): func gui_input(event): - if event is InputEventKey and event.pressed: - TTS.stop() if ( event is InputEventKey and Input.is_action_just_pressed("ui_accept")