Added handling of WM_IME_CHAR.
This commit is contained in:
parent
49fef46967
commit
199449d60e
|
@ -2063,6 +2063,7 @@ static LRESULT ComboWndProc_common( HWND hwnd, UINT message,
|
|||
return 0;
|
||||
|
||||
case WM_CHAR:
|
||||
case WM_IME_CHAR:
|
||||
case WM_KEYDOWN:
|
||||
{
|
||||
HWND hwndTarget;
|
||||
|
|
|
@ -762,6 +762,19 @@ static LRESULT WINAPI EditWndProc_common( HWND hwnd, UINT msg,
|
|||
}
|
||||
break;
|
||||
|
||||
case WM_IME_CHAR:
|
||||
if (!unicode)
|
||||
{
|
||||
WCHAR charW;
|
||||
CHAR strng[2];
|
||||
|
||||
strng[0] = wParam >> 8;
|
||||
strng[1] = wParam & 0xff;
|
||||
MultiByteToWideChar(CP_ACP, 0, strng, 2, &charW, 1);
|
||||
EDIT_WM_Char(es, charW);
|
||||
break;
|
||||
}
|
||||
/* fall through */
|
||||
case WM_CHAR:
|
||||
{
|
||||
WCHAR charW;
|
||||
|
|
Loading…
Reference in New Issue