Commit 9586c599 for guacamole.apache.org
commit 9586c5995658b7e473c05a17e733f2c3e4e2c36f
Author: Bradley Bennett <bbennett@keepersecurity.com>
Date: Fri Dec 12 14:38:46 2025 -0500
GUACAMOLE-2188: Support Shift+Tab combination in terminal emulator.
diff --git a/src/terminal/terminal.c b/src/terminal/terminal.c
index 0600df51..1111cc5b 100644
--- a/src/terminal/terminal.c
+++ b/src/terminal/terminal.c
@@ -1451,6 +1451,11 @@ 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) {
+ return guac_terminal_send_string(term, "\x1B[Z");
+ }
+
/*
* Ctrl+Shift+C and Cmd+c shortcuts for copying are not handled, as
* selecting text in the terminal automatically copies it. To avoid