imgui.SetItemDefaultFocus imgui.SetItemDefaultFocus(): () Makes the last widget the one focused when the window first appears.