From dd9877557ef7f2e9c6e93b54fb412fac95204528 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 28 May 2020 13:13:06 -0500 Subject: [PATCH] Enable focus mode use by default in the editor. --- Plugin.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugin.gd b/Plugin.gd index d81b03a..25f5a2f 100644 --- a/Plugin.gd +++ b/Plugin.gd @@ -18,8 +18,9 @@ func _enter_tree(): rate = config.get_value("speech", "rate", 50) add_autoload_singleton("TTS", "res://addons/godot-tts/TTS.gd") if editor_accessibility_enabled: - TTS.call_deferred("set_rate", rate) + TTS.call_deferred("_set_rate", rate) screen_reader = ScreenReader.new() + screen_reader.enable_focus_mode = true get_tree().root.call_deferred("add_child", screen_reader) call_deferred("connect", "scene_changed", screen_reader, "set_initial_scene_focus") call_deferred("connect", "main_screen_changed", screen_reader, "set_initial_screen_focus")