If a keymap file is not found for the selected country then default to the more
common USA ISO rather than index 0 (Belgian). Reviewed by: jhb MFC after: 1 day
This commit is contained in:
parent
47e2996e8b
commit
01eb65dbbf
@ -103,8 +103,11 @@ keymapMenuSelect(dialogMenuItem *self)
|
||||
if ((choice = keymapSetDefault(prefix)) == -1)
|
||||
{
|
||||
snprintf(prefix, sizeof(prefix), "keymap=%s", lang);
|
||||
if ((choice = keymapSetDefault(prefix)) == -1)
|
||||
choice = 0;
|
||||
if ((choice = keymapSetDefault(prefix)) == -1) {
|
||||
snprintf(prefix, sizeof(prefix), "keymap=us.iso", lang);
|
||||
if ((choice = keymapSetDefault(prefix)) == -1)
|
||||
choice = 0;
|
||||
}
|
||||
}
|
||||
|
||||
dmenuSetDefaultIndex(&MenuSysconsKeymap, &choice, &scroll, &curr, &max);
|
||||
|
@ -103,8 +103,11 @@ keymapMenuSelect(dialogMenuItem *self)
|
||||
if ((choice = keymapSetDefault(prefix)) == -1)
|
||||
{
|
||||
snprintf(prefix, sizeof(prefix), "keymap=%s", lang);
|
||||
if ((choice = keymapSetDefault(prefix)) == -1)
|
||||
choice = 0;
|
||||
if ((choice = keymapSetDefault(prefix)) == -1) {
|
||||
snprintf(prefix, sizeof(prefix), "keymap=us.iso", lang);
|
||||
if ((choice = keymapSetDefault(prefix)) == -1)
|
||||
choice = 0;
|
||||
}
|
||||
}
|
||||
|
||||
dmenuSetDefaultIndex(&MenuSysconsKeymap, &choice, &scroll, &curr, &max);
|
||||
|
Loading…
Reference in New Issue
Block a user