Skip to content

Commit

Permalink
HID: input: add mapping for Expose/Overview key
Browse files Browse the repository at this point in the history
[ Upstream commit 96dd86871e1fffbc39e4fa61c9c75ec54ee9af0f ]

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 <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
dtor authored and gregkh committed May 16, 2019
1 parent e94f852 commit dc30867
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/hid/hid-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,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;
Expand Down

0 comments on commit dc30867

Please sign in to comment.