Some Windows keymaps, it turns out, don't translate the key
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 14 Sep 2008 15:11:42 +0000 (15:11 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 14 Sep 2008 15:11:42 +0000 (15:11 +0000)
combination Ctrl + \ as the Ctrl-\ character. All of mine have, but
at least one laptop turns out not to. Do so explicitly.

git-svn-id: svn://svn.tartarus.org/sgt/putty@8182 cda61777-01e9-0310-a592-d414129be87e

windows/window.c

index 033cfa5..86cece8 100644 (file)
@@ -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;
        }