From e1e1bfb3063daf7d5276405a1e83d5738c12b8be Mon Sep 17 00:00:00 2001 From: Christian Fehmer Date: Fri, 14 Nov 2025 13:41:07 +0100 Subject: [PATCH] fix(test): don't ignore caps lock in layout emulator (@fehmer) (#7107) With layout emulation set to qwerty and caps-lock enabled keypresses are registered as lowercase. --- frontend/src/ts/test/layout-emulator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ts/test/layout-emulator.ts b/frontend/src/ts/test/layout-emulator.ts index b578b2e6c..5a5462cfc 100644 --- a/frontend/src/ts/test/layout-emulator.ts +++ b/frontend/src/ts/test/layout-emulator.ts @@ -20,7 +20,7 @@ export async function getCharFromEvent( let isCapitalized = event.shiftKey; const altGrIndex = isAltGrPressed && keyVariants.length > 2 ? 2 : 0; const isNotPunctuation = !isPunctuationPattern.test( - keyVariants.slice(altGrIndex, altGrIndex + 2).join() + keyVariants.slice(altGrIndex, altGrIndex + 2).join("") ); if (capsState && isNotPunctuation) { isCapitalized = !event.shiftKey;