Skip to content

Commit d2c0b62

Browse files
committed
fix: _ and - are now both detected
1 parent 0d2cb78 commit d2c0b62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/user-event/keyboard/keyMap.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const defaultKeyMap: keyboardKey[] = [
1818
{code: 'Digit(', hex: '\x29'},
1919
{code: 'Digit)', hex: '\x29'},
2020
{code: 'Digit*', hex: '\x2a'},
21+
{code: 'Digit-', hex: '\x2d'},
2122
{code: 'Digit@', hex: '\x40'},
2223
{code: 'Digit^', hex: '\x5e'},
2324
{code: 'Digit0', hex: '\x30'},
@@ -56,6 +57,7 @@ export const defaultKeyMap: keyboardKey[] = [
5657
{code: 'KeyX', hex: '\x58'},
5758
{code: 'KeyY', hex: '\x59'},
5859
{code: 'KeyZ', hex: '\x5a'},
60+
{code: 'Digit_', hex: '\x5f'},
5961
{code: 'KeyLowerA', hex: '\x61'},
6062
{code: 'KeyLowerB', hex: '\x62'},
6163
{code: 'KeyLowerC', hex: '\x63'},

0 commit comments

Comments
 (0)