1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00

winemac.drv: Do not append " dead" to dead keycodes in GetKeyNameText.

This commit is contained in:
Marc-Aurel Zent 2024-03-15 08:55:16 +01:00 committed by Alexandre Julliard
parent 3b40b49c91
commit 7a3e09640b

View File

@ -1310,7 +1310,6 @@ INT macdrv_GetKeyNameText(LONG lparam, LPWSTR buffer, INT size)
{
if (thread_data->keyc2scan[keyc] == scan)
{
static const WCHAR dead[] = {' ','d','e','a','d',0};
const UCKeyboardLayout *uchr;
UInt32 deadKeyState = 0;
UniCharCount len;
@ -1370,12 +1369,6 @@ INT macdrv_GetKeyNameText(LONG lparam, LPWSTR buffer, INT size)
if (!len)
break;
if (status == noErr && deadKeyState)
{
lstrcpynW(buffer + len, dead, size - len);
len = wcslen(buffer);
}
TRACE("lparam 0x%08x -> %s\n", (unsigned int)lparam, debugstr_w(buffer));
return len;
}