mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-24 21:05:57 +00:00
Capture arrow input on trees so UI focus doesn't skitter off randomly.
This commit is contained in:
parent
1654b3729f
commit
7630fa3ec0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user