From 9c6a1127b47fcecee6e5e37186068304d5065aaf Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 14 Sep 2008 15:11:42 +0000 Subject: [PATCH] Some Windows keymaps, it turns out, don't translate the key combination Ctrl + \ as the Ctrl-\ character. All of mine have, but at least one laptop turns out not to. Do so explicitly. [originally from svn r8182] --- windows/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/window.c b/windows/window.c index 033cfa5d..86cece85 100644 --- a/windows/window.c +++ b/windows/window.c @@ -3995,7 +3995,7 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam, *p++ = 0x1F; return p - output; } - if (shift_state == 2 && wParam == 0xDF) { + if (shift_state == 2 && (wParam == 0xDF || wParam == 0xDC)) { *p++ = 0x1C; return p - output; }