aboutsummaryrefslogtreecommitdiffstats
path: root/kbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'kbd.c')
-rw-r--r--kbd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kbd.c b/kbd.c
index b788607..d806944 100644
--- a/kbd.c
+++ b/kbd.c
@@ -83,7 +83,7 @@ static struct termctrl termctrl[] = {
{ .seq = "\x07", .code = KEY_G, .mod = KEY_MOD_CTRL },
{ .seq = "\x08", .code = KEY_H, .mod = KEY_MOD_CTRL },
{ .seq = "\x09", .code = KEY_I, .mod = KEY_MOD_CTRL },
- { .seq = "\x0a", .code = KEY_J, .mod = KEY_MOD_CTRL },
+ { .seq = "\x0a", .code = KEY_ENTER },
{ .seq = "\x0b", .code = KEY_K, .mod = KEY_MOD_CTRL },
{ .seq = "\x0c", .code = KEY_L, .mod = KEY_MOD_CTRL },
{ .seq = "\x0d", .code = KEY_M, .mod = KEY_MOD_CTRL },
@@ -116,6 +116,7 @@ static struct termctrl termctrl[] = {
{ .seq = "\x1b", .code = KEY_ESC },
{ .seq = "+", .code = KEY_KPPLUS },
{ .seq = "-", .code = KEY_KPMINUS },
+ { .seq = "\x7f", .code = KEY_BACKSPACE},
{ .seq = "\x1b[A", .code = KEY_UP },
{ .seq = "\x1b[B", .code = KEY_DOWN },