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.
This commit is contained in:
Nolan Darilek 2020-01-25 11:44:20 -06:00
parent 1bef677066
commit d180158749

View File

@ -545,14 +545,6 @@ func gui_input(event):
return tree_input(event) return tree_input(event)
elif node.is_class("EditorInspectorSection"): elif node.is_class("EditorInspectorSection"):
return editor_inspector_section_input(event) 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(): func is_in_bar():
var parent = node.get_parent() var parent = node.get_parent()