user32: Call ImmProcessKey in TranslateMessage to allow IMEs to handle key processing if they choose to.
This commit is contained in:
parent
d20d374f77
commit
f51542d9b5
|
@ -35,6 +35,7 @@
|
|||
#include "winnls.h"
|
||||
#include "dbt.h"
|
||||
#include "dde.h"
|
||||
#include "imm.h"
|
||||
#include "wine/unicode.h"
|
||||
#include "wine/server.h"
|
||||
#include "user_private.h"
|
||||
|
@ -2994,6 +2995,9 @@ BOOL WINAPI TranslateMessage( const MSG *msg )
|
|||
TRACE_(key)("Translating key %s (%04lx), scancode %02x\n",
|
||||
SPY_GetVKeyName(msg->wParam), msg->wParam, LOBYTE(HIWORD(msg->lParam)));
|
||||
|
||||
if (ImmProcessKey(msg->hwnd, GetKeyboardLayout(0), msg->wParam, msg->lParam,0))
|
||||
return TRUE;
|
||||
|
||||
GetKeyboardState( state );
|
||||
/* FIXME : should handle ToUnicode yielding 2 */
|
||||
switch (ToUnicode(msg->wParam, HIWORD(msg->lParam), state, wp, 2, 0))
|
||||
|
|
|
@ -538,6 +538,7 @@ BOOL WINAPI ImmIsUIMessageA(HWND, UINT, WPARAM, LPARAM);
|
|||
BOOL WINAPI ImmIsUIMessageW(HWND, UINT, WPARAM, LPARAM);
|
||||
#define ImmIsUIMessage WINELIB_NAME_AW(ImmIsUIMessage)
|
||||
BOOL WINAPI ImmNotifyIME(HIMC, DWORD, DWORD, DWORD);
|
||||
BOOL WINAPI ImmProcessKey(HWND, HKL, UINT, LPARAM, DWORD);
|
||||
BOOL WINAPI ImmRegisterWordA(HKL, LPCSTR, DWORD, LPCSTR);
|
||||
BOOL WINAPI ImmRegisterWordW(HKL, LPCWSTR, DWORD, LPCWSTR);
|
||||
#define ImmRegisterWord WINELIB_NAME_AW(ImmRegisterWord)
|
||||
|
|
Loading…
Reference in New Issue