This commit is contained in:
nakst 2021-10-13 09:12:15 +01:00
parent cc66d80a25
commit be6bd9cce8
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ void SettingsUpdateGlobalAndWindowManager() {
size_t keyboardLayoutBytes;
char *keyboardLayout = EsSystemConfigurationReadString(EsLiteral("general"), EsLiteral("keyboard_layout"), &keyboardLayoutBytes);
api.global->keyboardLayout = keyboardLayout && keyboardLayoutBytes == 2 ? (keyboardLayout[0] | ((uint16_t) keyboardLayout[1] << 8)) : 1;
api.global->keyboardLayout = keyboardLayout && keyboardLayoutBytes >= 2 ? (keyboardLayout[0] | ((uint16_t) keyboardLayout[1] << 8)) : 1;
EsHeapFree(keyboardLayout);
{