GUAC-1296: Stub Pause / Break / Ctrl+0 key handling within telnet client.

This commit is contained in:
Michael Jumper 2015-08-23 16:10:51 -07:00
parent 8ff071bf04
commit 08cfde7678

View File

@ -84,6 +84,19 @@ int guac_telnet_client_key_handler(guac_client* client, int keysym, int pressed)
} }
/* Intercept and handle Pause / Break / Ctrl+0 as "IAC BRK" */
if (pressed && (
keysym == 0xFF13 /* Pause */
|| keysym == 0xFF6B /* Break */
|| (term->mod_ctrl && keysym == '0') /* Ctrl + 0 */
)) {
/* Send IAC BRK */
guac_client_log(client, GUAC_LOG_DEBUG, "STUB");
return 0;
}
/* Send key */ /* Send key */
guac_terminal_send_key(term, keysym, pressed); guac_terminal_send_key(term, keysym, pressed);