mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-21 11:35:56 +00:00
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 c459a35f0d
.
This commit is contained in:
parent
c459a35f0d
commit
c218d18090
|
@ -54,8 +54,7 @@ func _guess_label():
|
||||||
|
|
||||||
func _accept_dialog_speak():
|
func _accept_dialog_speak():
|
||||||
if node.dialog_text != "":
|
if node.dialog_text != "":
|
||||||
print("Speaking %s" % node.dialog_text)
|
TTS.speak("dialog: %s" % node.dialog_text)
|
||||||
TTS.speak("dialog: %s" % node.dialog_text, false)
|
|
||||||
|
|
||||||
|
|
||||||
func accept_dialog_focused():
|
func accept_dialog_focused():
|
||||||
|
@ -66,7 +65,6 @@ func accept_dialog_focused():
|
||||||
|
|
||||||
|
|
||||||
func _accept_dialog_about_to_show():
|
func _accept_dialog_about_to_show():
|
||||||
print("About to show")
|
|
||||||
_accept_dialog_speak()
|
_accept_dialog_speak()
|
||||||
|
|
||||||
|
|
||||||
|
@ -545,6 +543,7 @@ func tab_container_input(event):
|
||||||
|
|
||||||
func focused():
|
func focused():
|
||||||
print_debug("Focus: %s" % node)
|
print_debug("Focus: %s" % node)
|
||||||
|
TTS.stop()
|
||||||
if not node is Label:
|
if not node is Label:
|
||||||
var label = _guess_label()
|
var label = _guess_label()
|
||||||
if label:
|
if label:
|
||||||
|
@ -606,8 +605,6 @@ func click_focused():
|
||||||
|
|
||||||
|
|
||||||
func gui_input(event):
|
func gui_input(event):
|
||||||
if event is InputEventKey and event.pressed:
|
|
||||||
TTS.stop()
|
|
||||||
if (
|
if (
|
||||||
event is InputEventKey
|
event is InputEventKey
|
||||||
and Input.is_action_just_pressed("ui_accept")
|
and Input.is_action_just_pressed("ui_accept")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user