godot icon indicating copy to clipboard operation
godot copied to clipboard

Add `autofocus` property to Control

Open gmikhail opened this issue 5 months ago • 6 comments
trafficstars

autofocus

  • Adding autofocus property. The control will attempt to automatically grab focus when it becomes visible. If multiple controls enable autofocus property, the last control to become visible will grab focus.
  • Adding documentation to autofocus property.

Fix https://github.com/godotengine/godot-proposals/issues/6298


To test the behavior, you can use the attached project (autofocus is enabled on two buttons, the last one gets focus when the game starts).

feature-autofocus.zip

gmikhail avatar May 31 '25 06:05 gmikhail