From bacf8fc92efddede7a549aaa290f6777204d940a Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 23 Dec 2021 14:53:20 -0800 Subject: [PATCH] toot-toot: support backspace on Mac --- toot-toot.tlv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)