зеркало из https://github.com/github/putty.git
Shift-Tab now sends ESC [ Z
[originally from svn r408]
This commit is contained in:
Родитель
de9572d7a6
Коммит
41be6d6f4d
10
window.c
10
window.c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче