Skip to content

Commit 894abd1

Browse files
AlexDubokOleksii Dubok
and
Oleksii Dubok
authored
fix: navigation key names (#2046)
* fix: navigation key names * chore: update test --------- Co-authored-by: Oleksii Dubok <[email protected]>
1 parent f2cade2 commit 894abd1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/test-utils/src/create-dom-event.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ const w3cKeys = {
3333
esc: 'Esc',
3434
escape: 'Escape',
3535
space: ' ',
36-
up: 'Up',
37-
left: 'Left',
38-
right: 'Right',
39-
down: 'Down',
36+
up: 'ArrowUp',
37+
left: 'ArrowLeft',
38+
right: 'ArrowRight',
39+
down: 'ArrowDown',
4040
end: 'End',
4141
home: 'Home',
4242
backspace: 'Backspace',

test/specs/wrapper/trigger.spec.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ describeWithShallowAndMount('trigger', mountingMethod => {
119119
esc: 'Esc',
120120
escape: 'Escape',
121121
space: ' ',
122-
up: 'Up',
123-
left: 'Left',
124-
right: 'Right',
125-
down: 'Down',
122+
up: 'ArrowUp',
123+
left: 'ArrowLeft',
124+
right: 'ArrowRight',
125+
down: 'ArrowDown',
126126
end: 'End',
127127
home: 'Home',
128128
backspace: 'Backspace',

0 commit comments

Comments
 (0)