From: Dmitry Torokhov Date: Fri, 18 Jan 2019 21:59:08 +0000 (-0800) Subject: HID: input: add mapping for Expose/Overview key X-Git-Tag: v5.1-rc6~17^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96dd86871e1fffbc39e4fa61c9c75ec54ee9af0f;p=thirdparty%2Flinux.git HID: input: add mapping for Expose/Overview key According to HUTRR77 usage 0x29f from the consumer page is reserved for the Desktop application to present all running user’s application windows. Linux defines KEY_SCALE to request Compiz Scale (Expose) mode, so let's add the mapping. Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index def58c6aa8353..5f800e7b04f2c 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -1030,6 +1030,8 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel case 0x2cb: map_key_clear(KEY_KBDINPUTASSIST_ACCEPT); break; case 0x2cc: map_key_clear(KEY_KBDINPUTASSIST_CANCEL); break; + case 0x29f: map_key_clear(KEY_SCALE); break; + default: map_key_clear(KEY_UNKNOWN); } break;