Fix: Backspace will delete the character before the one on the left of the cursor

pull/3048/head
robert00s 7 years ago committed by Frans de Jonge
parent e6ec1d4198
commit f650ac1ecc

@ -299,6 +299,8 @@ function TextBoxWidget:moveCursor(x, y)
local w_prev = w - self.char_width_list[offset].width - self.char_width_list[offset].pad
if x - w_prev < w - x then -- the previous one is more closer
w = w_prev
else
offset = offset + 1
end
end
self:free()

Loading…
Cancel
Save