mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user