aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/evdev
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2017-11-01 09:18:41 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2017-11-01 09:18:41 +0000
commit906b7574bf42560293a44225be404287e2fdd997 (patch)
tree75b6f86225d8845a5493278b66a664188c320ba7 /sys/dev/evdev
parentac850e5a8d49098ed96737eea60a42801b7fc0fb (diff)
downloadsrc-906b7574bf42560293a44225be404287e2fdd997.tar.gz
src-906b7574bf42560293a44225be404287e2fdd997.zip
evdev: Translate KEY_102ND in evdev_scancode2key()
This is the extra key on 102/105-keys keyboards, located on the right of the Left Shift key. For instance on a French layout, this is the '<' key. This fixes an issue where the key fires no evdev event and thus remains inactive in an evdev/libinput-enabled X.Org server. The issue only occurred on an AT keyboard; the same key on a USB keyboard worked fine. PR: 222609 (only for reference) Approved by: wulf@ Differential Revision: https://reviews.freebsd.org/D12883
Notes
Notes: svn path=/head/; revision=325269
Diffstat (limited to 'sys/dev/evdev')
-rw-r--r--sys/dev/evdev/evdev_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/evdev/evdev_utils.c b/sys/dev/evdev/evdev_utils.c
index e0b1104f7424..5a93802e9b6a 100644
--- a/sys/dev/evdev/evdev_utils.c
+++ b/sys/dev/evdev/evdev_utils.c
@@ -138,7 +138,7 @@ static uint16_t evdev_at_set1_scancodes[] = {
KEY_KP8, KEY_KP9, KEY_KPMINUS, KEY_KP4,
KEY_KP5, KEY_KP6, KEY_KPPLUS, KEY_KP1,
KEY_KP2, KEY_KP3, KEY_KP0, KEY_KPDOT,
- NONE, NONE, NONE, KEY_F11,
+ NONE, NONE, KEY_102ND, KEY_F11,
KEY_F12, NONE, NONE, NONE,
NONE, NONE, NONE, NONE,
/* 0x60 - 0x7f */