aboutsummaryrefslogtreecommitdiffstats
path: root/kbd.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-03-30 18:01:54 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-03-30 18:01:54 +0200
commit4826ed6443eb85145a9ea916f2017560b81a3b6f (patch)
tree30d4b50b8d489dd6145dde2b37482dba844f7485 /kbd.c
parent7a78b0196a1be7c8211102d71c56c8a720e79dd5 (diff)
downloadfbida-4826ed6443eb85145a9ea916f2017560b81a3b6f.tar.gz
switch fbi kbd handling to new code
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 },