faulty symbol definition in evdev

Uwe Münzberg uwe.muenzberg at binarydata.de
Tue Oct 24 01:35:57 PDT 2023


Hi there,

currently in xorg, with german keyboard layout, the keypad div key produces a minus char instead a slash.
The reason seems to be a faulty symbol definition in evdev_utils.c. The following changes fix this:

diff --git a/sys/dev/misc/evdev/evdev_utils.c b/sys/dev/misc/evdev/evdev_utils.c
index b8f4c6a849..dda720629d 100644
--- a/sys/dev/misc/evdev/evdev_utils.c
+++ b/sys/dev/misc/evdev/evdev_utils.c
@@ -61,7 +61,7 @@ static uint16_t evdev_usb_scancodes[256] = {
        KEY_PAUSE,      KEY_INSERT,     KEY_HOME,       KEY_PAGEUP,
        KEY_DELETE,     KEY_END,        KEY_PAGEDOWN,   KEY_RIGHT,
        KEY_LEFT,       KEY_DOWN,       KEY_UP,         KEY_NUMLOCK,
-       KEY_SLASH,      KEY_KPASTERISK, KEY_KPMINUS,    KEY_KPPLUS,
+       KEY_KPSLASH,    KEY_KPASTERISK, KEY_KPMINUS,    KEY_KPPLUS,
        KEY_KPENTER,    KEY_KP1,        KEY_KP2,        KEY_KP3,
        KEY_KP4,        KEY_KP5,        KEY_KP6,        KEY_KP7,
        /* 0x60 - 0x7f */

Cheers
Uwe Münzberg


More information about the Users mailing list