From 45dabbc53ecd1fb439a99e6553b1e84b12335a8c Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 13 Mar 2000 14:45:32 +0000 Subject: [PATCH] Shift-Tab now sends ESC [ Z git-svn-id: svn://svn.tartarus.org/sgt/putty@408 cda61777-01e9-0310-a592-d414129be87e --- window.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/window.c b/window.c index e85cb024..a7aeb1fc 100644 --- a/window.c +++ b/window.c @@ -1433,6 +1433,16 @@ static int TranslateKey(WPARAM wParam, LPARAM lParam, unsigned char *output) { } /* + * Shift-Tab should send ESC [ Z. + */ + if (ret && (keystate[VK_SHIFT] & 0x80) && wParam == '\t') { + *p++ = 0x1B; /* ESC */ + *p++ = '['; + *p++ = 'Z'; + return p - output; + } + + /* * Before doing Windows charmap translation, remove LeftALT * from the keymap, since its sole effect should be to prepend * ESC, which we've already done. Note that removal of LeftALT -- 2.11.0