Ignore unknown keys (fixes #162).

This commit is contained in:
Michael Jumper 2012-12-16 17:51:49 -08:00
parent 4d007e7e78
commit baa6d98724

View File

@ -189,6 +189,9 @@ int ssh_guac_client_key_handler(guac_client* client, int keysym, int pressed) {
else if (keysym == 0xFF53) { data = "\x1B\x5B""C"; length = 3; }
else if (keysym == 0xFF51) { data = "\x1B\x5B""D"; length = 3; }
/* Ignore other keys */
else return 0;
return channel_write(client_data->term_channel, data, length);
}