mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 21:15:03 -05:00
Shift-Tab now sends ESC [ Z
[originally from svn r408]
This commit is contained in:
parent
de9572d7a6
commit
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
|
* Before doing Windows charmap translation, remove LeftALT
|
||||||
* from the keymap, since its sole effect should be to prepend
|
* from the keymap, since its sole effect should be to prepend
|
||||||
|
Loading…
x
Reference in New Issue
Block a user