From: Peter Hutterer Date: Tue, 6 Oct 2020 23:36:38 +0000 (+1000) Subject: fallback: expand the range of valid keys X-Git-Tag: 1.16.901~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a80fe325032053792c7ee14d77f76cd41c4c47f7;p=platform%2Fupstream%2Flibinput.git fallback: expand the range of valid keys The kernel has since added a bunch of keys in the range between KEY_ONSCREEN_KEYBOARD and BTN_TRIGGER_HAPPY. Let's designate those as keys so we handle them correctly. Signed-off-by: Peter Hutterer --- diff --git a/src/evdev-fallback.h b/src/evdev-fallback.h index 0f75827e..d1223ba5 100644 --- a/src/evdev-fallback.h +++ b/src/evdev-fallback.h @@ -194,7 +194,7 @@ get_key_type(uint16_t code) return KEY_TYPE_KEY; if (code >= BTN_DPAD_UP && code <= BTN_DPAD_RIGHT) return KEY_TYPE_BUTTON; - if (code >= KEY_ALS_TOGGLE && code <= KEY_ONSCREEN_KEYBOARD) + if (code >= KEY_ALS_TOGGLE && code < BTN_TRIGGER_HAPPY) return KEY_TYPE_KEY; if (code >= BTN_TRIGGER_HAPPY && code <= BTN_TRIGGER_HAPPY40) return KEY_TYPE_BUTTON;