Read keymaps over 128 keys. Patch by Yoshitomo Nakashima

ulab-original
Nicola Ruggero 14 years ago
parent d797b2cf49
commit 17bc1418ec

@ -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)

@ -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 */

Loading…
Cancel
Save