Skip to content

Commit e1e1bfb

Browse files
authored
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.
1 parent 0e4b9c4 commit e1e1bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/ts/test/layout-emulator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export async function getCharFromEvent(
2020
let isCapitalized = event.shiftKey;
2121
const altGrIndex = isAltGrPressed && keyVariants.length > 2 ? 2 : 0;
2222
const isNotPunctuation = !isPunctuationPattern.test(
23-
keyVariants.slice(altGrIndex, altGrIndex + 2).join()
23+
keyVariants.slice(altGrIndex, altGrIndex + 2).join("")
2424
);
2525
if (capsState && isNotPunctuation) {
2626
isCapitalized = !event.shiftKey;

0 commit comments

Comments
 (0)