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:
commit
2e72d4c9e3
@ -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 */
|
/* Send key */
|
||||||
guac_terminal_send_key(term, keysym, pressed);
|
guac_terminal_send_key(term, keysym, pressed);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user