67
67
-- handle movement keys that repeat
71
73
for _, key in pairs{'backspace', 'delete', 'left', 'right'} do
72
74
if the.keys:pressed(key) then
81
99
if frameAction == 'backspace' and self.caret > 0 then
82
100
self.text = string.sub(self.text, 1, self.caret - 1) .. string.sub(self.text, self.caret + 1)
83
101
self.caret = self.caret - 1