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