faulty symbol definition in evdev

karu.pruun karu.pruun at gmail.com
Wed Oct 25 05:44:06 PDT 2023


Hello

Thanks for sending the patch---I'll do this at the weekend.

Cheers

Peeter

--



On Tue, Oct 24, 2023 at 11:36 AM Uwe Münzberg
<uwe.muenzberg at binarydata.de> wrote:
>
> 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