From b09e2adffa491d788784954e48be88621871e3e8 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Fri, 7 Dec 2007 23:09:00 +0100 Subject: [PATCH] fix the keyboard addon to not ignore key repeat events This allows one to for example just hold down the brightness keys instead of needing to tap it to change it multiple steps. Patch by Ryan Lortie. --- hald/linux/addons/addon-input.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hald/linux/addons/addon-input.c b/hald/linux/addons/addon-input.c index 2ba923b..59fb355 100644 --- a/hald/linux/addons/addon-input.c +++ b/hald/linux/addons/addon-input.c @@ -284,7 +284,7 @@ event_io (GIOChannel *channel, GIOCondition condition, gpointer data) } } } - } else if (input_data->event.type == EV_KEY && key_name[input_data->event.code] != NULL && input_data->event.value == 1) { + } else if (input_data->event.type == EV_KEY && key_name[input_data->event.code] != NULL && input_data->event.value) { dbus_error_init (&error); libhal_device_emit_condition (ctx, input_data->udi, "ButtonPressed", -- 1.5.3.7