Merge pull request #73 from glyptodon/send-iac-brk

GUAC-1296: Send IAC BRK when Pause, Break, or Ctrl+0 are pressed.
This commit is contained in:
James Muehlner 2015-08-23 20:53:41 -07:00
commit 2e72d4c9e3

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 */
telnet_iac(client_data->telnet, TELNET_BREAK);
return 0;
}
/* Send key */
guac_terminal_send_key(term, keysym, pressed);