X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwindow.c;h=2bbdc263c9da91dad5f3682da3b38c24429708e4;hb=a063e522970946bf7d5dc052079d7773c0dee76d;hp=5bacdce50864956f1d44ce2173a47cc5833acdcc;hpb=3dfb9ac8851fda0599b32495099cb91c2bbf4a62;p=PuTTY.git diff --git a/windows/window.c b/windows/window.c index 5bacdce5..2bbdc263 100644 --- a/windows/window.c +++ b/windows/window.c @@ -76,6 +76,11 @@ #define WHEEL_DELTA 120 #endif +/* VK_PACKET, used to send Unicode characters in WM_KEYDOWNs */ +#ifndef VK_PACKET +#define VK_PACKET 0xE7 +#endif + static Mouse_Button translate_button(Mouse_Button button); static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam, @@ -3086,7 +3091,8 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, unsigned char buf[20]; int len; - if (wParam == VK_PROCESSKEY) { /* IME PROCESS key */ + if (wParam == VK_PROCESSKEY || /* IME PROCESS key */ + wParam == VK_PACKET) { /* 'this key is a Unicode char' */ if (message == WM_KEYDOWN) { MSG m; m.hwnd = hwnd;