necouchman commented on code in PR #628:
URL: https://github.com/apache/guacamole-server/pull/628#discussion_r2615978610


##########
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:
   I'm not sure that returning `0` here is the correct thing to do? The other 
calls around this all return the value of the `guac_terminal_send_` functions - 
any reason not to do that, here, too?



-- 
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]

Reply via email to