1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

win32u: Don't mask keyboard scan codes when processing them for IME.

Fixes missed key up events on older macOS versions, which could
result in out-of-order input.

Fix via Rémi Bernon <rbernon@codeweavers.com>.
This commit is contained in:
Tim Clem 2024-03-01 13:10:26 -08:00 committed by Alexandre Julliard
parent 93bc97e54f
commit 0fb7c99c33

View file

@ -583,7 +583,7 @@ LRESULT ime_driver_call( HWND hwnd, enum wine_ime_call call, WPARAM wparam, LPAR
{
struct imm_thread_data *data = get_imm_thread_data();
data->ime_process_scan = HIWORD(lparam) & 0x1ff;
data->ime_process_scan = HIWORD(lparam);
data->ime_process_vkey = LOWORD(wparam);
res = user_driver->pImeProcessKey( params->himc, wparam, lparam, params->state );
data->ime_process_vkey = data->ime_process_scan = 0;
@ -597,7 +597,7 @@ LRESULT ime_driver_call( HWND hwnd, enum wine_ime_call call, WPARAM wparam, LPAR
res = TRUE;
}
TRACE( "processing scan %#x, vkey %#x -> %u\n", LOWORD(wparam), HIWORD(lparam) & 0x1ff, (UINT)res );
TRACE( "processing scan %#x, vkey %#x -> %u\n", LOWORD(wparam), HIWORD(lparam), (UINT)res );
return res;
}
case WINE_IME_TO_ASCII_EX: