1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

Ctrl and Alt shouldn't reset the scrollback even if reset-on-

keypress is enabled. (Shift already didn't, because that was
necessary for Shift-Pg{Up,Dn} to work sanely.)

[originally from svn r1392]
This commit is contained in:
Simon Tatham 2001-11-21 22:23:40 +00:00
parent 96d1f87e19
commit c2ae9e5537

View File

@ -2871,7 +2871,8 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam,
* Record that we pressed key so the scroll window can be reset, but
* be careful to avoid Shift-UP/Down
*/
if (wParam != VK_SHIFT && wParam != VK_PRIOR && wParam != VK_NEXT) {
if (wParam != VK_SHIFT && wParam != VK_PRIOR && wParam != VK_NEXT &&
wParam != VK_MENU && wParam != VK_CONTROL) {
seen_key_event = 1;
}