mike-jumper commented on code in PR #628:
URL: https://github.com/apache/guacamole-server/pull/628#discussion_r2616193656
##########
src/terminal/terminal.c:
##########
@@ -1451,6 +1451,12 @@ static int __guac_terminal_send_key(guac_terminal* term,
int keysym, int pressed
if ((keysym == 'V' && term->mod_ctrl) || (keysym == 'v' &&
term->mod_meta))
return guac_terminal_send_data(term, term->clipboard->buffer,
term->clipboard->length);
+ /* If Shift+Tab (Backtab), send the appropriate escape sequence */
+ if (term->mod_shift && keysym == 0xFF09) {
+ guac_terminal_send_string(term, "\x1B[Z");
+ return 0;
Review Comment:
> Yep, great point. Though currently no functional impact, there could be in
a future redesign.
And, more importantly, we really need to stay within the defined contract of
the function. Here, the return value of this private function is dictated by
the public wrapper:
https://github.com/apache/guacamole-server/blob/44b163806db5711f6ca852be6b70bb2c8d31fb70/src/terminal/terminal/terminal.h#L457-L461
Regardless of whether that value is currently used in practice, doing
otherwise would be introducing a bug.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]