FirstBootPrompt: smarter keyboard layout selection

Change-Id: I6501f8a697039c4c4d600d544e0ce6659d2b5dfe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2539
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Adrien Destugues
2020-05-02 00:54:48 +00:00
committed by waddlesplash
parent 5c2709cdd5
commit 5c1b8016d3
+11 -1
View File
@@ -64,7 +64,17 @@ namespace BPrivate {
static const char* kLanguageKeymapMappings[] = {
// While there is a "Dutch" keymap, it apparently has not been widely
// adopted, and the US-International keymap is common
"Dutch", "US-International"
"Dutch", "US-International",
// Cyrillic keymaps are not usable alone, as latin alphabet is required to
// use Terminal. So we stay in US international until the user has a chance
// to set up KeymapSwitcher. TODO enable KeymapSwitcher automatically.
"Belarussian", "US-International",
"Russian", "US-International",
"Ukrainian", "US-International",
// Turkish has two layouts, we must pick one
"Turkish", "Turkish (Type-Q)",
};
static const size_t kLanguageKeymapMappingsSize
= sizeof(kLanguageKeymapMappings) / sizeof(kLanguageKeymapMappings[0]);