mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix: Backspace will delete the character before the one on the left of the cursor
This commit is contained in:
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()
|
||||
|
||||
Reference in New Issue
Block a user