From 7630fa3ec05a560eac6351e782d4b5a972640300 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 25 Sep 2019 09:12:40 -0500 Subject: [PATCH] Capture arrow input on trees so UI focus doesn't skitter off randomly. --- Accessible.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Accessible.gd b/Accessible.gd index b6254f8..e686584 100644 --- a/Accessible.gd +++ b/Accessible.gd @@ -405,6 +405,8 @@ func gui_input(event): elif node is LineEdit: return check_caret_moved() elif node is Tree: + if event.is_action_pressed("ui_up") or event.is_action_pressed("ui_down") or event.is_action_pressed("ui_left") or event.is_action_pressed("ui_right"): + node.accept_event() return tree_input(event) elif node.get_class() == "EditorInspectorSection": return editor_inspector_section_input(event)