about summary refs log tree commit diff stats
path: root/src/teliva.h
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-28 08:50:44 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-28 08:50:47 -0800
commit1ac98e28e69d6a1cd7fa1468e69e8b2594ccbc6d (patch)
treec9301d4dbd4271d2f6f1af0b0d31ec35bdc3c33c /src/teliva.h
parent75ded7a9187ebd588f6ef0a99a48dff726179ed6 (diff)
downloadteliva-1ac98e28e69d6a1cd7fa1468e69e8b2594ccbc6d.tar.gz
fix backspace on Mac
I'm deliberately restricting this incompatibility to the editor
environment for now.
Diffstat (limited to 'src/teliva.h')
-rw-r--r--src/teliva.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/teliva.h b/src/teliva.h
index 9a6038e..bd2d43c 100644
--- a/src/teliva.h
+++ b/src/teliva.h
@@ -11,6 +11,11 @@ enum KEY_ACTION {
   CTRL_F = 6,
   CTRL_G = 7,
   CTRL_H = 8,
+#if APPLE
+  TELIVA_BACKSPACE = KEY_DELETE,
+#else
+  TELIVA_BACKSPACE = KEY_BACKSPACE,
+#endif
   TAB = 9,
   ENTER = 10,
   CTRL_L = 12,