Input: allocate keycode for Fn + right shift
authorHans de Goede <hdegoede@redhat.com>
Tue, 8 Sep 2020 16:58:09 +0000 (09:58 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 8 Sep 2020 23:31:14 +0000 (16:31 -0700)
The last 2 generations of Lenovo Thinkpads send an acpi_thinkpad event when
Fn + right shift is pressed.  This is intended for use with "Lenovo Quick
Clean" software, which disables the touchpad + kbd for 2 minutes on this
key-combo so that healthcare workes can disinfect it.

But there is no silkscreen print on the right-keyboard to indicate this,
so add a KEY_FN_RIGHT_SHIFT keycode define to use for this key-combo.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200908135147.4044-3-hdegoede@redhat.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
include/uapi/linux/input-event-codes.h

index b74821d0914560175eb11db22ce9409cdde63d5b..ee93428ced9a1723824413b69bdd88980170bca4 100644 (file)
 #define KEY_FN_F               0x1e2
 #define KEY_FN_S               0x1e3
 #define KEY_FN_B               0x1e4
+#define KEY_FN_RIGHT_SHIFT     0x1e5
 
 #define KEY_BRL_DOT1           0x1f1
 #define KEY_BRL_DOT2           0x1f2