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;