1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-11 08:08:06 -05:00

Shift-Tab now sends ESC [ Z

[originally from svn r408]
This commit is contained in:
Simon Tatham 2000-03-13 14:45:32 +00:00
parent de9572d7a6
commit 41be6d6f4d

View File

@ -1432,6 +1432,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