From c2ae9e55375e2317515ed1abe3fef7a1b2d9e875 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 21 Nov 2001 22:23:40 +0000 Subject: [PATCH] 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] --- window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/window.c b/window.c index 1ff3f288..14966504 100644 --- a/window.c +++ b/window.c @@ -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; }