From a9296e976d2e3a37146cd6917341b4f9c02917c3 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Thu, 29 Mar 2012 01:12:48 +0200 Subject: [PATCH] locale: add Japanese backslash key with rdp scancode 7D and X key name AE13 Correct values for the keyboard fields in Client Core Data is required too. --- include/freerdp/keyboard_scancode.h | 1 + libfreerdp-locale/keyboard_xkbfile.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/freerdp/keyboard_scancode.h b/include/freerdp/keyboard_scancode.h index 6627af24b..7c2f930ca 100644 --- a/include/freerdp/keyboard_scancode.h +++ b/include/freerdp/keyboard_scancode.h @@ -211,6 +211,7 @@ typedef uint32 RDP_SCANCODE; /* Our own representation of a RDP protocol scancod /* #define RDP_SCANCODE_OEM_CLEAR VK_OEM_CLEAR */ #define RDP_SCANCODE_RETURN_KP mk_rdp_scancode(0x1C, true) /* not RDP_SCANCODE_RETURN */ +#define RDP_SCANCODE_BACKSLASH_JP mk_rdp_scancode(0x7D, false) /* JP OEM_5 ('\') */ /* _not_ valid scancode, but this is what a windows PKBDLLHOOKSTRUCT for NumLock contains */ #define RDP_SCANCODE_NUMLOCK_EXTENDED mk_rdp_scancode(0x45, true) /* should be RDP_SCANCODE_NUMLOCK */ diff --git a/libfreerdp-locale/keyboard_xkbfile.c b/libfreerdp-locale/keyboard_xkbfile.c index 243c643ff..c49c81dc5 100644 --- a/libfreerdp-locale/keyboard_xkbfile.c +++ b/libfreerdp-locale/keyboard_xkbfile.c @@ -146,7 +146,8 @@ XKB_KEY_NAME_SCANCODE XKB_KEY_NAME_SCANCODE_TABLE[] = { "COMP", RDP_SCANCODE_APPS}, { "KPDV", RDP_SCANCODE_DIVIDE}, // KP! { "RCTL", RDP_SCANCODE_RCONTROL}, - { "RALT", RDP_SCANCODE_RMENU} + { "RALT", RDP_SCANCODE_RMENU}, + { "AE13", RDP_SCANCODE_BACKSLASH_JP} // JP /* { "LVL3", 0x54} */ };