content

How do I focus the next Control?

To focus the next Control, create a new InputEventAction and push it to the current Viewport:

var event := InputEventAction.new()
event.action = "ui_focus_next"
event.pressed = true
get_viewport().push_input(event)

History

meta

tags: godot

created: 2024-06-25 22:46:38
modified: 2024-09-19 04:26:37