From dc696f5b7f3394678551711008965e3fa88b1b4f Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Thu, 20 Jun 2024 13:53:34 +0100 Subject: [PATCH] Add missing scancode map for ABNT2 KPPT The Brazilian ABNT2 Keyboard layout contains a keypad decimal key which doesn't exist on other keypads:- https://www.kbdlayout.info/kbdbr/virtualkeys This key is curently mapped in xorgxrdp to keycode 134 (basic mapping), but isn't present in the scancode map. It needs to be added so that it is available to VNC sessions and will be mapped for xorgxrdp when we move to evdev keycode mappings. --- common/scancode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/scancode.c b/common/scancode.c index a25df79d..07cf8a28 100644 --- a/common/scancode.c +++ b/common/scancode.c @@ -137,6 +137,7 @@ static const struct scancode_to_keycode { 0x079, 100 }, // - HENK { 0x07b, 102 }, // VK_OEM_PA1 MUHE { 0x07d, 132 }, // - AE13 + { 0x07e, 129 }, // VK_ABNT_C2 KPPT (Brazil ABNT2) { 0x110, 173 }, // VK_MEDIA_PREV_TRACK I173 (KEY_PREVIOUSSONG) { 0x119, 171 }, // VK_MEDIA_NEXT_TRACK I171 (KEY_NEXTSONG) { 0x11c, 104 }, // VK_RETURN KPEN @@ -272,6 +273,7 @@ static const struct scancode_to_keycode { 0x079, 129 }, // - XFER { 0x07b, 131 }, // VK_OEM_PA1 NFER { 0x07d, 133 }, // - AE13 + { 0x07e, 134 }, // VK_ABNT_C2 KPPT (Brazil ABNT2) { 0x11c, 108 }, // VK_RETURN KPEN { 0x11d, 109 }, // VK_RCONTROL RCTL { 0x120, 141 }, // VK_VOLUME_MUTE MUTE