From baa6d98724badc54bf20b9167ac4bdabba17ee89 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 16 Dec 2012 17:51:49 -0800 Subject: [PATCH] Ignore unknown keys (fixes #162). --- protocols/ssh/src/ssh_handlers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocols/ssh/src/ssh_handlers.c b/protocols/ssh/src/ssh_handlers.c index 16e329cb..32a71867 100644 --- a/protocols/ssh/src/ssh_handlers.c +++ b/protocols/ssh/src/ssh_handlers.c @@ -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); }