mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
As KEYCODE_TYPE_XKB is 3, in the previous code we were doing some "and masking" and so when calling GetKeycodeFromVirtualKeyCode(code, KEYCODE_TYPE_XKB), the function was always interpreting the virtual key code with the apple layout. This patch fixes that and also mutualize the search in the code array.