From: simon Date: Sat, 28 Jun 2003 07:52:19 +0000 (+0000) Subject: Someone pointed out that ^~ should generate the same as ^^, for X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/9aa461e45f13a2fe184b510126debfbe88a2aafd Someone pointed out that ^~ should generate the same as ^^, for consistency with xterm. git-svn-id: svn://svn.tartarus.org/sgt/putty@3314 cda61777-01e9-0310-a592-d414129be87e --- 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';