mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:08:30 +00:00
winemac.drv: Do not append " dead" to dead keycodes in GetKeyNameText.
This commit is contained in:
parent
3b40b49c91
commit
7a3e09640b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue