From e68765165c28f38e6c05302a9176389c61f3c2d8 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 26 Sep 2019 09:03:46 -0500 Subject: [PATCH] Revert "Add group navigation." Going to be too complicated to implement the way I wanted to for now. Need to rethink this. This reverts commit cafd50675be3033785a0d862182f40652c40cc74. --- Accessible.gd | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/Accessible.gd b/Accessible.gd index 157f375..7929892 100644 --- a/Accessible.gd +++ b/Accessible.gd @@ -386,8 +386,6 @@ func focus(): print("No handler") if node.hint_tooltip and not spoke_hint_tooltip: tts.speak(node.hint_tooltip, false) - if is_in_group(): - tts.speak("group", false) spoke_hint_tooltip = false func unfocus(): @@ -427,21 +425,8 @@ func gui_input(event): return node.accept_event() elif event.is_action_pressed("ui_down"): return node.accept_event() - elif event is InputEventWithModifiers: - if Input.is_action_just_pressed("ui_focus_prev") and event.control and is_in_group(): - print("Prev") - var target = get_siblings()[0] - if target: - print("Got target") - target.grab_focus() - target.grab_click_focus() - elif Input.is_action_just_pressed("ui_focus_next") and event.control and is_in_group(): - var target = get_siblings()[-1] - if target: - target.grab_focus() - target.grab_click_focus() -func is_in_group(): +func is_in_bar(): var parent = node.get_parent() if parent and parent is Container: for child in parent.get_children():