winemac: Return 0 from ToUnicodeEx() for a key release.

This commit is contained in:
Ken Thomases 2013-05-02 18:56:39 -05:00 committed by Alexandre Julliard
parent d5fc4ce772
commit 7c808ddfbc
1 changed files with 8 additions and 0 deletions

View File

@ -1372,6 +1372,9 @@ INT CDECL macdrv_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState
if (is_menu)
{
if (keyAction == kUCKeyActionUp)
goto done;
options = kUCKeyTranslateNoDeadKeysMask;
deadKeyState = 0;
}
@ -1390,8 +1393,13 @@ INT CDECL macdrv_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState
goto done;
}
if (!is_menu)
{
thread_data->dead_key_state = deadKeyState;
if (keyAction == kUCKeyActionUp)
goto done;
}
if (len == 0 && deadKeyState)
{
/* Repeat the translation, but disabling dead-key generation to