Entry.TextBox.FocusLost:Connect(function(t)return Window:LoseFocus(t)end)UserInputService.InputBegan:Connect(function(t,o)return Window:BeginInput(t,o)end);(Entry.TextBox:GetPropertyChangedSignal("\084\101\120\116")):Connect(function()if Entry.TextBox.Text:match("\t")then Entry.TextBox.Text=Entry.TextBox.Text:gsub("\t","")return end if Window.OnTextChanged then return Window.OnTextChanged(Entry.TextBox.Text)end end)Gui.ChildAdded:Connect(Window.UpdateWindowHeight)return Window
-- Hook events
Entry.TextBox.FocusLost:Connect(function(submit)
	return Window:LoseFocus(submit)
end)

UserInputService.InputBegan:Connect(function(input, gameProcessed)
	return Window:BeginInput(input, gameProcessed)
end)

Entry.TextBox:GetPropertyChangedSignal("Text"):Connect(function()
	if Entry.TextBox.Text:match("\t") then -- Eat \t
		Entry.TextBox.Text = Entry.TextBox.Text:gsub("\t", "")
		return
	end
	if Window.OnTextChanged then
		return Window.OnTextChanged(Entry.TextBox.Text)
	end
end)

Gui.ChildAdded:Connect(Window.UpdateWindowHeight)

return Window
