#define XK_MISCELLANY
#define XK_XKB_KEYS
+#define XK_KOREAN
#include <rfb/keysymdef.h>
#include <rfb/XF86keysym.h>
{ VK_ATTN, XK_Romaji, NoSymbol },
};
+// Korean
+static const int vkey_map_ko[][3] = {
+ { VK_HANGUL, XK_Hangul, NoSymbol },
+ { VK_HANJA, XK_Hangul_Hanja, NoSymbol },
+};
+
static int lookup_vkey_map(UINT vkey, int extended, const int map[][3], size_t size)
{
size_t i;
return ret;
}
+ if (primary_lang == LANG_KOREAN) {
+ ret = lookup_vkey_map(vkey, extended,
+ vkey_map_ko, ARRAY_SIZE(vkey_map_ko));
+ if (ret != NoSymbol)
+ return ret;
+ }
+
// Windows is not consistent in which virtual key it uses for
// the numpad decimal key, and this is not likely to be fixed:
// http://blogs.msdn.com/michkap/archive/2006/09/13/752377.aspx