mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 08:54:38 +09:00
Merge pull request #6662 from akallabeth/kbd_detect
Fixed keyboard layout detection for windows
This commit is contained in:
@@ -47,6 +47,10 @@ DWORD X11_KEYCODE_TO_VIRTUAL_SCANCODE[256];
|
||||
|
||||
int freerdp_detect_keyboard(DWORD* keyboardLayoutId)
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
*keyboardLayoutId = (DWORD)GetKeyboardLayout(0) & 0x0000FFFF;
|
||||
#endif
|
||||
|
||||
#ifdef WITH_X11
|
||||
if (*keyboardLayoutId == 0)
|
||||
freerdp_detect_keyboard_layout_from_xkb(keyboardLayoutId);
|
||||
|
||||
Reference in New Issue
Block a user