From a1b1dcc16ed9b750eedeafff9a862aaa13d22e21 Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Sun, 28 Sep 2014 15:55:34 -0400 Subject: [PATCH] Fix #147 --- objects/textinput.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/objects/textinput.lua b/objects/textinput.lua index 75bf935..367c411 100644 --- a/objects/textinput.lua +++ b/objects/textinput.lua @@ -751,6 +751,10 @@ function newobject:RunKey(key, istext) self.line = line + 1 end self.indicatornum = 0 + local hbody = self:GetHorizontalScrollBody() + if hbody then + hbody:GetScrollBar():Scroll(-hbody:GetWidth()) + end end elseif key == "tab" then if alltextselected then