function Window.SetEntryText(q,I)Entry.TextBox.Text=I if q:IsVisible()then Entry.TextBox:CaptureFocus()end end
--- Sets the text in the command bar text box, and captures focus
function Window:SetEntryText(text)
	Entry.TextBox.Text = text

	if self:IsVisible() then
		Entry.TextBox:CaptureFocus()
	end
end
