Added support for all keysyms, even over 0xFFFF

Signed-off-by: Michael Jumper <zhangmaike@users.sourceforge.net>
This commit is contained in:
Jocelyn DELALANDE 2012-05-07 16:38:46 +02:00 committed by Michael Jumper
parent 4d0ed19243
commit 7736e8f7aa

View File

@ -326,7 +326,7 @@ int __guac_rdp_send_keysym(guac_client* client, int keysym, int pressed) {
freerdp* rdp_inst = guac_client_data->rdp_inst;
/* If keysym can be in lookup table */
if (keysym <= 0xFFFF) {
//if (keysym <= 0xFFFF) {
/* Look up scancode mapping */
const guac_rdp_keysym_desc* keysym_desc =
@ -391,9 +391,12 @@ int __guac_rdp_send_keysym(guac_client* client, int keysym, int pressed) {
rdp_inst->input,
0,//pressed ? KBD_FLAGS_DOW : KBD_FLAGS_RELEASE,
unicode_code);
} else {
guac_client_log_info(client, "Ignoring release");
}
}
}
//}
return 0;
}