GUAC-930: Log keysyms which are sent via Unicode.
This commit is contained in:
parent
f948dd62a8
commit
6fc1699d86
@ -411,6 +411,9 @@ int __guac_rdp_send_keysym(guac_client* client, int keysym, int pressed) {
|
|||||||
* DOWN/RELEASE flags */
|
* DOWN/RELEASE flags */
|
||||||
if (pressed) {
|
if (pressed) {
|
||||||
|
|
||||||
|
guac_client_log(client, GUAC_LOG_DEBUG,
|
||||||
|
"Sending keysym 0x%x as Unicode", keysym);
|
||||||
|
|
||||||
/* Translate keysym into codepoint */
|
/* Translate keysym into codepoint */
|
||||||
int codepoint;
|
int codepoint;
|
||||||
if (keysym <= 0xFF)
|
if (keysym <= 0xFF)
|
||||||
@ -418,7 +421,7 @@ int __guac_rdp_send_keysym(guac_client* client, int keysym, int pressed) {
|
|||||||
else if (keysym >= 0x1000000)
|
else if (keysym >= 0x1000000)
|
||||||
codepoint = keysym & 0xFFFFFF;
|
codepoint = keysym & 0xFFFFFF;
|
||||||
else {
|
else {
|
||||||
guac_client_log(client, GUAC_LOG_INFO,
|
guac_client_log(client, GUAC_LOG_DEBUG,
|
||||||
"Unmapped keysym has no equivalent unicode "
|
"Unmapped keysym has no equivalent unicode "
|
||||||
"value: 0x%x", keysym);
|
"value: 0x%x", keysym);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user