]>
Commit | Line | Data |
---|---|---|
345c7afc SL |
1 | From 9b3d9a41618fbc3f1ae2097698f146eda2f64331 Mon Sep 17 00:00:00 2001 |
2 | From: Dmitry Torokhov <dmitry.torokhov@gmail.com> | |
3 | Date: Fri, 18 Jan 2019 13:59:08 -0800 | |
4 | Subject: HID: input: add mapping for Expose/Overview key | |
5 | MIME-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ||
9 | [ Upstream commit 96dd86871e1fffbc39e4fa61c9c75ec54ee9af0f ] | |
10 | ||
11 | According to HUTRR77 usage 0x29f from the consumer page is reserved for | |
12 | the Desktop application to present all running user’s application windows. | |
13 | Linux defines KEY_SCALE to request Compiz Scale (Expose) mode, so let's | |
14 | add the mapping. | |
15 | ||
16 | Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> | |
17 | Signed-off-by: Sasha Levin <sashal@kernel.org> | |
18 | --- | |
19 | drivers/hid/hid-input.c | 2 ++ | |
20 | 1 file changed, 2 insertions(+) | |
21 | ||
22 | diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c | |
23 | index 8d74e691ac90f..01b41ff430564 100644 | |
24 | --- a/drivers/hid/hid-input.c | |
25 | +++ b/drivers/hid/hid-input.c | |
26 | @@ -913,6 +913,8 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel | |
27 | case 0x2cb: map_key_clear(KEY_KBDINPUTASSIST_ACCEPT); break; | |
28 | case 0x2cc: map_key_clear(KEY_KBDINPUTASSIST_CANCEL); break; | |
29 | ||
30 | + case 0x29f: map_key_clear(KEY_SCALE); break; | |
31 | + | |
32 | default: map_key_clear(KEY_UNKNOWN); | |
33 | } | |
34 | break; | |
35 | -- | |
36 | 2.20.1 | |
37 |