lkml.org 
[lkml]   [2019]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 08/51] HID: input: add mapping for Expose/Overview key
    Date
    [ 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 <dmitry.torokhov@gmail.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/hid/hid-input.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
    index fc7ada26457e8..d31725c4e7b1e 100644
    --- a/drivers/hid/hid-input.c
    +++ b/drivers/hid/hid-input.c
    @@ -932,6 +932,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;
    --
    2.20.1


    \
     
     \ /
      Last update: 2019-05-15 13:15    [W:4.099 / U:0.448 seconds]
    ©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site