[originally from svn r408]
This commit is contained in:
Simon Tatham 2000-03-13 14:45:32 +00:00
Родитель de9572d7a6
Коммит 41be6d6f4d
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -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