mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-25 05:15:57 +00:00
Only stop speech on button_down
.
This commit is contained in:
parent
6ecd8fa32e
commit
348ac32314
|
@ -69,7 +69,7 @@ func _accept_dialog_about_to_show():
|
||||||
ScreenReader.should_stop_on_focus = false
|
ScreenReader.should_stop_on_focus = false
|
||||||
|
|
||||||
|
|
||||||
func _basebutton_pressed():
|
func _basebutton_button_down():
|
||||||
TTS.stop()
|
TTS.stop()
|
||||||
|
|
||||||
|
|
||||||
|
@ -712,7 +712,7 @@ func _init(node):
|
||||||
node.connect("mouse_exited", self, "unfocused")
|
node.connect("mouse_exited", self, "unfocused")
|
||||||
node.connect("gui_input", self, "gui_input")
|
node.connect("gui_input", self, "gui_input")
|
||||||
if node is BaseButton:
|
if node is BaseButton:
|
||||||
node.connect("pressed", self, "_basebutton_pressed")
|
node.connect("button_down", self, "_basebutton_button_down")
|
||||||
if node is AcceptDialog:
|
if node is AcceptDialog:
|
||||||
node.connect("about_to_show", self, "_accept_dialog_about_to_show")
|
node.connect("about_to_show", self, "_accept_dialog_about_to_show")
|
||||||
elif node is CheckBox or node is CheckButton:
|
elif node is CheckBox or node is CheckButton:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user