From 0f0349587af2dceb20e296bd773c4e0afcac9034 Mon Sep 17 00:00:00 2001 From: Romuald Oluwatobi Date: Mon, 23 Mar 2026 01:47:36 +0100 Subject: [PATCH 1/2] fix: fix '(' mapping add more keyboard mapping --- .../src/user-event/keyboard/keyMap.ts | 113 +++++++++++++++++- 1 file changed, 111 insertions(+), 2 deletions(-) diff --git a/packages/cli-testing-library/src/user-event/keyboard/keyMap.ts b/packages/cli-testing-library/src/user-event/keyboard/keyMap.ts index f675fd0..ebb0165 100644 --- a/packages/cli-testing-library/src/user-event/keyboard/keyMap.ts +++ b/packages/cli-testing-library/src/user-event/keyboard/keyMap.ts @@ -11,17 +11,32 @@ import type { keyboardKey } from "./types"; export const defaultKeyMap: Array = [ // alphanumeric keys { code: "Digit!", hex: "\x21" }, + { code: "Digit\"", hex: "\x22" }, { code: "Digit#", hex: "\x23" }, { code: "Digit$", hex: "\x24" }, { code: "Digit%", hex: "\x25" }, { code: "Digit&", hex: "\x26" }, - { code: "Digit(", hex: "\x29" }, + { code: "Digit'", hex: "\x27" }, + { code: "Digit(", hex: "\x28" }, { code: "Digit)", hex: "\x29" }, { code: "Digit*", hex: "\x2a" }, + { code: "Digit+", hex: "\x2b" }, + { code: "Digit,", hex: "\x2c" }, { code: "Digit-", hex: "\x2d" }, { code: "Digit.", hex: "\x2e" }, + { code: "Digit/", hex: "\x2f" }, + { code: "Digit:", hex: "\x3a" }, + { code: "Digit;", hex: "\x3b" }, + { code: "Digit<", hex: "\x3c" }, + { code: "Digit=", hex: "\x3d" }, + { code: "Digit>", hex: "\x3e" }, + { code: "Digit?", hex: "\x3f" }, { code: "Digit@", hex: "\x40" }, + { code: "Digit[", hex: "\x5b" }, + { code: "Digit]", hex: "\x5d" }, { code: "Digit^", hex: "\x5e" }, + { code: "Digit_", hex: "\x5f" }, + { code: "Digit`", hex: "\x60" }, { code: "Digit{", hex: "\x7b" }, { code: "Digit|", hex: "\x7c" }, { code: "Digit}", hex: "\x7d" }, @@ -62,7 +77,6 @@ export const defaultKeyMap: Array = [ { code: "KeyX", hex: "\x58" }, { code: "KeyY", hex: "\x59" }, { code: "KeyZ", hex: "\x5a" }, - { code: "Digit_", hex: "\x5f" }, { code: "KeyLowerA", hex: "\x61" }, { code: "KeyLowerB", hex: "\x62" }, { code: "KeyLowerC", hex: "\x63" }, @@ -89,6 +103,101 @@ export const defaultKeyMap: Array = [ { code: "KeyLowerX", hex: "\x78" }, { code: "KeyLowerY", hex: "\x79" }, { code: "KeyLowerZ", hex: "\x7a" }, + + { code: "Digit¡", hex: "\xa1" }, + { code: "Digit¢", hex: "\xa2" }, + { code: "Digit£", hex: "\xa3" }, + { code: "Digit¤", hex: "\xa4" }, + { code: "Digit¥", hex: "\xa5" }, + { code: "Digit¦", hex: "\xa6" }, + { code: "Digit§", hex: "\xa7" }, + { code: "Digit¨", hex: "\xa8" }, + { code: "Digit©", hex: "\xa9" }, + { code: "Digitª", hex: "\xaa" }, + { code: "Digit«", hex: "\xab" }, + { code: "Digit¬", hex: "\xac" }, + { code: "Digit®", hex: "\xae" }, + { code: "Digit¯", hex: "\xaf" }, + { code: "Digit°", hex: "\xb0" }, + { code: "Digit±", hex: "\xb1" }, + { code: "Digit²", hex: "\xb2" }, + { code: "Digit³", hex: "\xb3" }, + { code: "Digit´", hex: "\xb4" }, + { code: "Digitµ", hex: "\xb5" }, + { code: "Digit¶", hex: "\xb6" }, + { code: "Digit·", hex: "\xb7" }, + { code: "Digit¸", hex: "\xb8" }, + { code: "Digit¹", hex: "\xb9" }, + { code: "Digitº", hex: "\xba" }, + { code: "Digit»", hex: "\xbb" }, + { code: "Digit¼", hex: "\xbc" }, + { code: "Digit½", hex: "\xbd" }, + { code: "Digit¾", hex: "\xbe" }, + { code: "Digit¿", hex: "\xbf" }, + { code: "DigitÀ", hex: "\xc0" }, + { code: "DigitÁ", hex: "\xc1" }, + { code: "DigitÂ", hex: "\xc2" }, + { code: "DigitÃ", hex: "\xc3" }, + { code: "DigitÄ", hex: "\xc4" }, + { code: "DigitÅ", hex: "\xc5" }, + { code: "DigitÆ", hex: "\xc6" }, + { code: "DigitÇ", hex: "\xc7" }, + { code: "DigitÈ", hex: "\xc8" }, + { code: "DigitÉ", hex: "\xc9" }, + { code: "DigitÊ", hex: "\xca" }, + { code: "DigitË", hex: "\xcb" }, + { code: "DigitÌ", hex: "\xcc" }, + { code: "DigitÍ", hex: "\xcd" }, + { code: "DigitÎ", hex: "\xce" }, + { code: "DigitÏ", hex: "\xcf" }, + { code: "DigitÐ", hex: "\xd0" }, + { code: "DigitÑ", hex: "\xd1" }, + { code: "DigitÒ", hex: "\xd2" }, + { code: "DigitÓ", hex: "\xd3" }, + { code: "DigitÔ", hex: "\xd4" }, + { code: "DigitÕ", hex: "\xd5" }, + { code: "DigitÖ", hex: "\xd6" }, + { code: "Digit×", hex: "\xd7" }, + { code: "DigitØ", hex: "\xd8" }, + { code: "DigitÙ", hex: "\xd9" }, + { code: "DigitÚ", hex: "\xda" }, + { code: "DigitÛ", hex: "\xdb" }, + { code: "DigitÜ", hex: "\xdc" }, + { code: "DigitÝ", hex: "\xdd" }, + { code: "DigitÞ", hex: "\xde" }, + { code: "Digitß", hex: "\xdf" }, + { code: "Digità", hex: "\xe0" }, + { code: "Digitá", hex: "\xe1" }, + { code: "Digitâ", hex: "\xe2" }, + { code: "Digitã", hex: "\xe3" }, + { code: "Digitä", hex: "\xe4" }, + { code: "Digitå", hex: "\xe5" }, + { code: "Digitæ", hex: "\xe6" }, + { code: "Digitç", hex: "\xe7" }, + { code: "Digitè", hex: "\xe8" }, + { code: "Digité", hex: "\xe9" }, + { code: "Digitê", hex: "\xea" }, + { code: "Digitë", hex: "\xeb" }, + { code: "Digitì", hex: "\xec" }, + { code: "Digití", hex: "\xed" }, + { code: "Digitî", hex: "\xee" }, + { code: "Digitï", hex: "\xef" }, + { code: "Digitð", hex: "\xf0" }, + { code: "Digitñ", hex: "\xf1" }, + { code: "Digitò", hex: "\xf2" }, + { code: "Digitó", hex: "\xf3" }, + { code: "Digitô", hex: "\xf4" }, + { code: "Digitõ", hex: "\xf5" }, + { code: "Digitö", hex: "\xf6" }, + { code: "Digit÷", hex: "\xf7" }, + { code: "Digitø", hex: "\xf8" }, + { code: "Digitù", hex: "\xf9" }, + { code: "Digitú", hex: "\xfa" }, + { code: "Digitû", hex: "\xfb" }, + { code: "Digitü", hex: "\xfc" }, + { code: "Digitý", hex: "\xfd" }, + { code: "Digitþ", hex: "\xfe" }, + { code: "Digitÿ", hex: "\xff" }, // alphanumeric block - functional { code: "Space", hex: "\x20" }, From e1c3f8820f387674bb09081e0ee7712da5f89a6c Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 28 Mar 2026 12:51:12 +0000 Subject: [PATCH 2/2] ci: apply automated fixes and generate docs --- .../cli-testing-library/src/user-event/keyboard/keyMap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli-testing-library/src/user-event/keyboard/keyMap.ts b/packages/cli-testing-library/src/user-event/keyboard/keyMap.ts index ebb0165..590f351 100644 --- a/packages/cli-testing-library/src/user-event/keyboard/keyMap.ts +++ b/packages/cli-testing-library/src/user-event/keyboard/keyMap.ts @@ -11,7 +11,7 @@ import type { keyboardKey } from "./types"; export const defaultKeyMap: Array = [ // alphanumeric keys { code: "Digit!", hex: "\x21" }, - { code: "Digit\"", hex: "\x22" }, + { code: 'Digit"', hex: "\x22" }, { code: "Digit#", hex: "\x23" }, { code: "Digit$", hex: "\x24" }, { code: "Digit%", hex: "\x25" }, @@ -103,7 +103,7 @@ export const defaultKeyMap: Array = [ { code: "KeyLowerX", hex: "\x78" }, { code: "KeyLowerY", hex: "\x79" }, { code: "KeyLowerZ", hex: "\x7a" }, - + { code: "Digit¡", hex: "\xa1" }, { code: "Digit¢", hex: "\xa2" }, { code: "Digit£", hex: "\xa3" },