winemac: Return 0 from ToUnicodeEx() for a key release.
This commit is contained in:
parent
d5fc4ce772
commit
7c808ddfbc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue