[SETUP:REACTOS] Select a better default keyboard layout, depending on the selected language

For example, when installing ReactOS in French, this selects the French
keyboard layout as default, while keeping English installed but not
activated.

This is partly a "hack", and adapts the existing solution chosen in USETUP.
A better fix will be done in the future.
This commit is contained in:
Hermès Bélusca-Maïto
2026-07-24 23:10:32 +02:00
parent 5da41b3448
commit 5302d4dca6
+4 -1
View File
@@ -2920,7 +2920,10 @@ BOOL LoadSetupData(
ListEntry = GetNextListEntry(ListEntry))
{
PCWSTR pszLayoutId = ((PGENENTRY)GetListEntryData(ListEntry))->Id;
if (!_wcsicmp(pSetupData->DefaultKBLayout, pszLayoutId))
// FIXME: Temporary "fix" to set the best keyboard entry depending on the
// selected language in unattended setup; see also usetup!SetupStartPage().
if (( pSetupData->bUnattend && !_wcsicmp(pSetupData->DefaultLanguage, pszLayoutId)) ||
(!pSetupData->bUnattend && !_wcsicmp(pSetupData->DefaultKBLayout, pszLayoutId)))
{
DPRINT("Found %S in LayoutList\n", pszLayoutId);
SetCurrentListEntry(LayoutList, ListEntry);