From 5c1b8016d3c18d486d2945ba9603616ed823f9c0 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 29 Apr 2020 21:44:29 +0200 Subject: [PATCH] FirstBootPrompt: smarter keyboard layout selection Change-Id: I6501f8a697039c4c4d600d544e0ce6659d2b5dfe Reviewed-on: https://review.haiku-os.org/c/haiku/+/2539 Reviewed-by: waddlesplash --- src/apps/firstbootprompt/BootPromptWindow.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/apps/firstbootprompt/BootPromptWindow.cpp b/src/apps/firstbootprompt/BootPromptWindow.cpp index 5d052b72b9..f08e469832 100644 --- a/src/apps/firstbootprompt/BootPromptWindow.cpp +++ b/src/apps/firstbootprompt/BootPromptWindow.cpp @@ -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]);