FauxFaux/PuTTYTray — Issue #17: Apparently ctrl+tab and ctrl+shift+tab don't send anything
Author: FauxFaux
Created: 2012-02-23 10:00:53+00:00
State: open

http://scnr.net/blog/index.php/archives/61

```
diff -u -r putty-src.orig\WINDOWS\WINDOW.C putty\WINDOWS\WINDOW.C
--- putty-src.orig\WINDOWS\WINDOW.C	Sun Feb 25 00:50:24 2007
+++ putty\WINDOWS\WINDOW.C	Fri Apr 10 15:24:54 2009
@@ -3979,6 +3979,14 @@
*p++ = 0;
return -2;
}
+	if (wParam == VK_TAB && shift_state == 2) {	/* Ctrl-Tab */
+	p += sprintf((char *) p, "\x1B[27;5;9~");
+	return p - output;
+	}
+	if (wParam == VK_TAB && shift_state == 3) {	/* Ctrl-Shift-Tab */
+	p += sprintf((char *) p, "\x1B[27;6;9~");
+	return p - output;
+	}
if (wParam == VK_TAB && shift_state == 1) {	/* Shift tab */
*p++ = 0x1B;
*p++ = '[';
```

```
bindkey "^[[27;5;9~" next # Ctrl-Tab
bindkey "^[[27;6;9~" prev # Ctrl-Shift-Tab
```