Read keymaps over 128 keys. Patch by Yoshitomo Nakashima

This commit is contained in:
Nicola Ruggero 2010-11-04 13:50:45 +01:00
parent d797b2cf49
commit 17bc1418ec
2 changed files with 6 additions and 6 deletions

View File

@ -181,7 +181,7 @@ km_read_section(int fd, const char* section_name, struct xrdp_key_info* keymap)
{
code = g_atoi(name);
}
if ((code >= 0) && (code < 128))
if ((code >= 0) && (code < 256))
{
pos1 = g_pos(value, ":");
if (pos1 >= 0)

View File

@ -201,11 +201,11 @@ struct xrdp_key_info
struct xrdp_keymap
{
struct xrdp_key_info keys_noshift[128];
struct xrdp_key_info keys_shift[128];
struct xrdp_key_info keys_altgr[128];
struct xrdp_key_info keys_capslock[128];
struct xrdp_key_info keys_shiftcapslock[128];
struct xrdp_key_info keys_noshift[256];
struct xrdp_key_info keys_shift[256];
struct xrdp_key_info keys_altgr[256];
struct xrdp_key_info keys_capslock[256];
struct xrdp_key_info keys_shiftcapslock[256];
};
/* the window manager */