aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/Menu/OptionMenu/VideoTab.gd
blob: 3d98678ec59fe8d3618a654f8a4ee6b4ae4d2937 (plain) (blame)
1
2
3
4
5
6
7
8
9
extends HBoxContainer

@export var initial_focus: Control

func _notification(what : int) -> void:
   match(what):
      NOTIFICATION_VISIBILITY_CHANGED:
         if visible and is_inside_tree():
            initial_focus.grab_focus()