diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-05-15 12:36:30 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-05-15 12:36:30 +0200 |
commit | ff564fcb524faa44e04e8a880d1f474647dbaf8f (patch) | |
tree | 4f37005f730975211b335dafc87e02ea451465c4 /tools/gsr-global-hotkeys/keyboard_event.c | |
parent | aabe190bf156ba12776a1acb39321e05540a56aa (diff) |
Fix replay duration range
Diffstat (limited to 'tools/gsr-global-hotkeys/keyboard_event.c')
-rw-r--r-- | tools/gsr-global-hotkeys/keyboard_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gsr-global-hotkeys/keyboard_event.c b/tools/gsr-global-hotkeys/keyboard_event.c index 66f143f..4ff7f11 100644 --- a/tools/gsr-global-hotkeys/keyboard_event.c +++ b/tools/gsr-global-hotkeys/keyboard_event.c @@ -220,7 +220,7 @@ static void keyboard_event_process_input_event_data(keyboard_event *self, event_ return; /* TODO: What if some key is being pressed down while this is done? will it remain pressed down? */ - if(!extra_data->is_non_keyboard_device && (event.type == EV_REL || (event.type == EV_KEY && !keyboard_key))) { + if(!extra_data->is_non_keyboard_device && (event.type == EV_REL || event.type == EV_ABS || (event.type == EV_KEY && !keyboard_key))) { fprintf(stderr, "Info: device /dev/input/event%d is likely a non-keyboard device as it received a non-keyboard event. This device will be ignored\n", extra_data->dev_input_id); extra_data->is_non_keyboard_device = true; if(extra_data->grabbed) { |