[fix] Update charpos in InputText after moving the cursor up/down. (#3874)

This commit is contained in:
Frode Austvik
2018-04-13 23:54:00 +02:00
committed by Frans de Jonge
parent 46a2571d3f
commit 2dc508537c
3 changed files with 12 additions and 2 deletions

View File

@@ -675,6 +675,7 @@ function TextBoxWidget:moveCursorUp()
if charpos then
self:moveCursorToCharpos(charpos)
end
return charpos
end
function TextBoxWidget:moveCursorDown()
@@ -685,6 +686,7 @@ function TextBoxWidget:moveCursorDown()
if charpos then
self:moveCursorToCharpos(charpos)
end
return charpos
end
function TextBoxWidget:paintTo(bb, x, y)