diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-12-23 14:53:20 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-12-23 14:53:20 -0800 |
commit | bacf8fc92efddede7a549aaa290f6777204d940a (patch) | |
tree | ac067a61665176879bae1705a0b2530ca7bf7cb1 | |
parent | 3dae8ffc3b3a8a10a2ba645e3f4830a87fa5ab1e (diff) | |
download | teliva-bacf8fc92efddede7a549aaa290f6777204d940a.tar.gz |
toot-toot: support backspace on Mac
-rw-r--r-- | toot-toot.tlv | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toot-toot.tlv b/toot-toot.tlv index 2b320b9..eca7b74 100644 --- a/toot-toot.tlv +++ b/toot-toot.tlv @@ -302,7 +302,7 @@ > cursor = cursor_down(prose, cursor, w) > elseif key == curses.KEY_UP then > cursor = cursor_up(prose, cursor, w) - > elseif key == curses.KEY_BACKSPACE then + > elseif key == curses.KEY_BACKSPACE or key == 8 or key == 127 then -- ctrl-h, ctrl-?, delete > if cursor > 1 then > cursor = cursor-1 > prose = prose:remove(cursor) |