From d180158749bbb75ad18698abbf69b1a065957fe2 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Sat, 25 Jan 2020 11:44:20 -0600 Subject: [PATCH] Remove automatic capture of arrow keys by nodes. On one hand, it's a bit confusing that UIs can be arrowed around independently of tab/shift-tab. Arrow navigation doesn't feel as intuitive, as it isn't obvious where you'll land. On the other, it's quicker to navigate between areas of the editor UI by arrowing up/down between controls, and may solve the issue of having to tab a million times to traverse all controls. This also allows for in-game UIs to be traversed using arrows and, quite probably, gamepads as well. --- Accessible.gd | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Accessible.gd b/Accessible.gd index f115cab..a87c12c 100644 --- a/Accessible.gd +++ b/Accessible.gd @@ -545,14 +545,6 @@ func gui_input(event): return tree_input(event) elif node.is_class("EditorInspectorSection"): return editor_inspector_section_input(event) - elif event.is_action_pressed("ui_left"): - return node.accept_event() - elif event.is_action_pressed("ui_right"): - return node.accept_event() - elif event.is_action_pressed("ui_up"): - return node.accept_event() - elif event.is_action_pressed("ui_down"): - return node.accept_event() func is_in_bar(): var parent = node.get_parent()