summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2024-01-01 13:56:42 +0300
committerOxore <oxore@protonmail.com>2024-01-01 13:56:42 +0300
commit3fbd1f3645416f6be73fbef4c993067d51c5ec8e (patch)
treebb1952f1ca58ab8ce5514f22125fce6d6e9f4fc2
parent6474e88847f9adf627b91fb56778fd9a9b775d66 (diff)
Fix backspace
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
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,