mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-21 19:45:55 +00:00
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:
parent
1bef677066
commit
d180158749
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user