mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-22 11:55:56 +00:00
Merge branch 'master' of https://gitlab.com/lightsoutgames/godot-accessibility
This commit is contained in:
commit
af1bd8ec91
|
@ -39,18 +39,9 @@ func guess_label():
|
||||||
return label
|
return label
|
||||||
to_check = to_check.get_parent()
|
to_check = to_check.get_parent()
|
||||||
|
|
||||||
func close_key_event_dialog():
|
|
||||||
node.get_ok().emit_signal("pressed")
|
|
||||||
|
|
||||||
var dialog_close_timer = Timer.new()
|
|
||||||
|
|
||||||
func accept_dialog_focus():
|
func accept_dialog_focus():
|
||||||
if not dialog_close_timer.is_connected("timeout", self, "close_key_event_dialog"):
|
yield(node.get_tree().create_timer(5), "timeout")
|
||||||
dialog_close_timer.connect("timeout", self, "close_key_event_dialog")
|
node.get_ok().emit_signal("pressed")
|
||||||
dialog_close_timer.one_shot = true
|
|
||||||
dialog_close_timer.start(5)
|
|
||||||
if dialog_close_timer.get_parent() == null:
|
|
||||||
node.add_child(dialog_close_timer)
|
|
||||||
|
|
||||||
func checkbox_focus():
|
func checkbox_focus():
|
||||||
var tokens = PoolStringArray([])
|
var tokens = PoolStringArray([])
|
||||||
|
@ -490,4 +481,4 @@ func _init(tts, node):
|
||||||
node.connect("cell_selected", self, "tree_item_selected")
|
node.connect("cell_selected", self, "tree_item_selected")
|
||||||
else:
|
else:
|
||||||
node.connect("item_selected", self, "tree_item_selected")
|
node.connect("item_selected", self, "tree_item_selected")
|
||||||
node.connect("tree_exiting", self, "queue_free")
|
node.connect("tree_exiting", self, "free")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user