From 380fa0313d3796257a607e5e3a8d8e51d25774c2 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 28 Jun 2003 07:52:19 +0000 Subject: [PATCH] Someone pointed out that ^~ should generate the same as ^^, for consistency with xterm. [originally from svn r3314] --- window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/window.c b/window.c index 1c3e2250..794efc20 100644 --- a/window.c +++ b/window.c @@ -3537,6 +3537,10 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam, *p++ = 0x1C; return p - output; } + if (shift_state == 3 && wParam == 0xDE) { + *p++ = 0x1E; /* Ctrl-~ == Ctrl-^ in xterm at least */ + return p - output; + } if (shift_state == 0 && wParam == VK_RETURN && term->cr_lf_return) { *p++ = '\r'; *p++ = '\n';