X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/405a0c293f0c7efe12ffecd11883a3fbccd288e7..f85e6f6edb2c9415bc10bd2015479d72ea8c5ae2:/window.c 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';