From d1b0c3fb11a4f7c117df7d7849a8cea6ccbe3af4 Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 10 May 2021 13:07:52 +0100 Subject: [PATCH] not lowercasing layouts to avoid issues --- src/js/config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/js/config.js b/src/js/config.js index e30446d26..d33a893bf 100644 --- a/src/js/config.js +++ b/src/js/config.js @@ -1407,18 +1407,17 @@ export function setCustomLayoutfluid(value, nosave) { value = "qwerty#dvorak#colemak"; } value = value.replace(/ /g, "#"); - value = value.toLowerCase(); //validate the layouts let allGood = true; - let list = Object.keys(LayoutList).map((l) => (l = l.toLowerCase())); + let list = Object.keys(LayoutList); value.split("#").forEach((customLayout) => { if (!list.includes(customLayout)) allGood = false; }); if (!allGood) { Notifications.add( - "One of the layouts were not found. Reverting to default", - 0 + "One of the layouts was not found. Make sure the name matches exactly. Reverting to default", + 0,4 ); value = "qwerty#dvorak#colemak"; nosave = false;