From 3fbd1f3645416f6be73fbef4c993067d51c5ec8e Mon Sep 17 00:00:00 2001 From: Oxore Date: Mon, 1 Jan 2024 13:56:42 +0300 Subject: Fix backspace --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index f0633f6..17c311d 100644 --- a/main.c +++ b/main.c @@ -228,7 +228,7 @@ static void setup_output_device(int fd) * created, to pass key events, in this case the space key. */ ioctl(fd, UI_SET_EVBIT, EV_KEY); - for (ssize_t i = 1; i < MAPPINGS_NUM; i++) { + for (ssize_t i = 0; i < MAPPINGS_NUM; i++) { if (-1 == ioctl(fd, UI_SET_KEYBIT, g_mapping[i].code)) { fprintf( stderr, -- cgit v1.2.3